[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Is there a "Virtual" Lua table library?
- From: Mark Hamburg <mhamburg@...>
- Date: Thu, 20 Jan 2005 09:54:44 -0800
The caveat is that those are essentially string-to-string mappings and the
databases sometimes impose harsh limits on string sizes. If you keep those
limitations in mind and are prepared to pack and unpack strings, you can
make them reasonably transparent for basic table access.
You can get around the size limitations either by playing encoding games in
the keys or by kicking to separate files above some threshold. This can be
kept transparent to the client.
If you are already using SQLite, I don't know how the performance of the
simpler databases compares.
on 1/20/05 7:09 AM, Klaus Ripke at email@example.com wrote:
> On Thursday 20 January 2005 15:54, Joseph Stewart wrote:
>> not pervasive persistance, just the ability to set the metamethods for
>> a table to use the disk/memory for paging huge tables.
> for berkeley/dbm-style DBs which follow the key=value paradigma
> this is trivial (very similar to a Perl hash tied to some xdbm).
> See gdbm, cdb and tdb at http://lua-users.org/wiki/LibrariesAndBindings