Lazy Loading

Oct 30, 2010 at 11:03 PM

I wanted to mention that by default when you open database, all data is loaded into memory.  To avoid this behavior, you can use lazy loading.  Use method Database.Open("SomeName", "", true).  The last parameter indicates that the data for a table is only loaded when query against a table is executed for the first time.  Second parameter is the password, you can pass in empty string if you do not want to encrypt the data, which will boost performance as well.