jacoscaz / quadstore

A LevelDB-backed graph database for JS runtimes (Node.js, Deno, browsers, ...) supporting SPARQL queries and the RDF/JS interface.

Home Page:https://github.com/jacoscaz/quadstore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PERFORMANCE: avoid repeated serialization of terms

jacoscaz opened this issue · comments

We can improve write performance levels by avoiding duplicate and unnecessary term serializations. Terms can simply be serialized once and their serialized versions can then be concatenated around based on each index's permutation of terms. Whether the ROI of doing this is high enough to justify the effort is TBD.

Closing this as ideas for performance improvements are now tracked as cards in https://github.com/beautifulinteractions/node-quadstore/projects/9 .