[go: up one dir, main page]

Menu

OutOfMemory

fcall
2017-09-20
2017-09-20
  • fcall

    fcall - 2017-09-20

    I have noticed that Ucanaccess try to load entire database in memory first, then only it do anything else. This is not a good design. F.e i have a 1GB database file and its not loading in my max allowed 1.3GB heap memory. So now i have no options to connect it. Is there any option i could use the db without fully loading in the memory?

     
  • Gord Thompson

    Gord Thompson - 2017-09-20

    If you append ;memory=false to your connection URL then UCanAccess will store the HSQLDB backing database tables on disk instead of in memory.

     
  • Marco Amadei

    Marco Amadei - 2017-09-20

    You may also want to connect with a filter database that links the real database within the subset of external linked tables which are strictly  needed for your application (the memory usage might be dropped down).  You must check by yourself the referential integrity with the excluded tables.
    How did your good design bring you to a 1G-sized access database (i.e. a personal desktop DB)? To improve the way to deal with large db, you have just to write an entire dbms from scratch instead of using UCanAccess.

     

Log in to post a comment.