Is there any limit on number of tables I can create in WiredTiger DB?
I can see that each table is stored in separate file, so implicit limit on 'opened' tables is the number of available file descriptors.
I wrote simple test that creates 1K tables and found that there are 77 opened file descriptors at the end, so there is some 'recycling'.
But I didn't find any configuration of it (like after what number of opened files it started to close old ones).
And new table creation looks really slow, due to fdatasync() calls -- is it possible somehow to avoid it, something like 'bulk' creation?
But since we may want to capture data for several thousands of instrument we need to create tables for all of them.
Which can take quite a lot of time.
Another problem is that we're bounded by number of available file descriptors.
Is it somehow possible to have several tables in one file?
--
You received this message because you are subscribed to the Google Groups "wiredtiger-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wiredtiger-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Just curious why not put an instrument id into the key of the row? I.e. row key can be instrument_id:timestamp.Then you can keep multiple instrument time series in a single table. They will be nicely clustered by instrument so scan for instrument id will be efficient. Also, WT has RK prefix compression so space overhead is minimal.