Why does TokuDB impose a limit of 64 keys per table?

153 views Asked by At

Why does TokuDB impose a limit of 64 keys per table by default, while systems like Elasticsearch allow any number of fields to be indexed (limited only by available resources)?

2

There are 2 answers

2
tmcallaghan On

Short answer, because at some point you simply need to put limits in your software. TokuDB is a storage engine for MySQL which supports far more operations than Elasticsearch, so there are trade-offs to be considered. Since TokuDB is open source I'd imagine you could find this value somewhere in the source code and raise it to something higher, compile, test, and deploy.

0
George Lorch On

This is a MySQL limit, grep MAX_INDEXES