#20 DBOverview should restrict number of open databases

V1.2
open
Christa Runge
5
2009-05-17
2009-05-14
Christa Runge
No

In the database list view and in the synch view, the ListViewController displays all lines of its table before it returns to the main event loop and the autorelease pool. In order to provide the requested data, the DBOverview opens all databases and read out the full name and other data.
In the current implementation, all databases are opened at the same time. This is no good, especially when the number of available databases is high.
It should be the responsibility of the DBOverview to open, read and close the databases one after the other.
Note: Before the refactoring it was the ContentManager singleton which ensured this behavior.

Discussion

  • Christa Runge
    Christa Runge
    2009-05-17

    Resolved with svn 441. The number of open database handles is now restricted to be <= 2. We will be able to reduce it to <= 1 after some more refactoring (Database will derive from DBBasic).

    For further tracking of this issue I moved it into the 'Refactoring' Tracker section.

     
  • Christa Runge
    Christa Runge
    2009-05-17

    • labels: 1165545 --> karatasi.iphone
    • milestone: 897800 --> V1.2
    • priority: 7 --> 5