lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

2011/2/2 Peter Cawley <>:
> On Wed, Feb 2, 2011 at 1:54 PM, Axel Kittenberger <> wrote:
>> You'll hit the ceiling with this method if:
>> * all of your data doesnt fit in memory at once.
>> * you have more than one process wanting to read/write data at the same time.
>> * you want to effectively change only parts of your data.
> Add to that:
>  * you have more than 2^18 constants within a single chunk / function

You can overcome that limitation by splitting data into several
functions that will be run by the loading "dofile" call.

The other limitations are harder to circumvent easily. I personnally
used such a scheme for a project of mine, and switched to CouchDB when
my data grew too big. Document-based databases like CouchDB can let
you implement very easy to use and almost transparent backends for big
Lua structures.