[m-users.] explaining index use
Tomas By
tomas at basun.net
Sat Jul 30 21:02:00 AEST 2016
On 2016-07-30 09:50, Peter Wang wrote:
> You could write a tool that generates a file containing the records and
> indices from a table of facts (without invoking a C compiler) then,
> as you suggest, mmap that in and do your lookups on that.
But isn't the problem here that the data does just not fit in memory?
Maybe you could split it up by giving each of your 160M records a 32-bit
id number. That's 320Mb times whatever indexing you need, which might
fit.
(Mercury does not have a database like Prolog. It is just C code and a
garbage collector.)
/Tomas
More information about the users
mailing list