|
|
|
|
|
by erisds
2859 days ago
|
|
We're loading all public-facing resources - so posts, tags, authors and importantly the relations between them - in as few queries as possible, using fairly typical where...in queries in order to build the relations. SQLite uses variables for in queries, and so sites with a lot of content triggered the "more than 999 variables" error. Solvable, of course, but quite an interesting limitation to discover! |
|
For the relation data, you should check out Hexastore [0] (essentially graph storage). It takes up much more space, but you can follow any paths of relationship and you can do it step by step instead of loading everything at once.
[0] http://www.vldb.org/pvldb/1/1453965.pdf