Openbravo Issue Tracking System - Java Client POS
View Issue Details
0007624Java Client POS(No Category)public2009-02-18 13:252011-06-03 12:21
uwe47 
adrianromero 
lowminoralways
scheduledopen 
10XP 32 Bit SP3
2.20 
2.40 
0007624: Catalog function fails with large number of products
The catalog function fails (i.e. stock diary and stock maintenance don't work (nothing happens after pressing the respective buttons) and in the sales window you can't change categories anymore) after adding a large number of products (about 5000) to the catalog.

(NOTE: the problem is NOT the number of products imported into Openbravo POS by itself but the number of products added to the CATALOG)
- Add a total of about 5.000 products (organized in 4 categories of about 800 to 1500 products each) to the database (load into PostgreSQL from CSV file);

AND

- Add all products to the catalog (by adding the product ids to products_cat.product)

The total number of products by itself doesn't seem to be the problem - only if you add them to the catalog. Without adding them to the catalog Openbravo POS slows down only a little bit on startup, even with all 5000 products imported.

Trying to add the products to the catalog category by category results in an increasing slowdown of Openbravo POS (on startup and on changing screens) after each added category. And Openbravo POS will only work with no more than a total of two categories added to the catalog (no matter which categories or how many products exactly belong to each category (varying from 800 to 1500, see above)). After adding a third category, the described problem will always occur.

And it's the same on both PostgreSQL and MySQL.
No tags attached.
Issue History
2009-02-18 13:25uwe47New Issue
2009-02-23 10:49adrianromeroStatusnew => scheduled
2009-02-23 10:49adrianromeroAssigned To => adrianromero
2009-02-23 10:49adrianromerofix_in_branch => trunk
2009-03-02 15:52adrianromeroTarget Version => 2.30
2009-03-02 15:52adrianromerofix_in_branchtrunk =>
2009-03-23 17:18adrianromeroNote Added: 0014869
2009-03-23 17:18adrianromeroPrioritynormal => low
2009-03-23 17:18adrianromeroSeveritymajor => minor
2009-03-23 17:18adrianromeroTarget Version2.30 =>
2009-04-01 16:30adrianromeroTarget Version => 2.40
2011-06-03 11:01dalsasuaAssigned Toadrianromero => dalsasua
2011-06-03 12:21dalsasuaAssigned Todalsasua => adrianromero
2012-11-07 09:40priyamCategory01 - General => (No Category)

Notes
(0014869)
adrianromero   
2009-03-23 17:18   
When there are a big number of products in the database Openbravo POS running under Linux throws the following exception:

java.lang.OutOfMemoryError: GC overhead limit exceeded
        at sun.awt.X11.XDecoratedPeer.handleConfigureNotifyEvent(XDecoratedPeer.java:752)
        at sun.awt.X11.XBaseWindow.dispatchEvent(XBaseWindow.java:1122)
        at sun.awt.X11.XBaseWindow.dispatchToWindow(XBaseWindow.java:1079)
        at sun.awt.X11.XToolkit.dispatchEvent(XToolkit.java:475)
        at sun.awt.X11.XToolkit.run(XToolkit.java:588)
        at sun.awt.X11.XToolkit.run(XToolkit.java:523)
        at java.lang.Thread.run(Thread.java:619)

To fix this issue will involve to modify the functionality in several areas to manage large amounts of records like pagination, and this is something we will not afford in this version.