Affects Version/s: None
Fix Version/s: None
The standard code path writes on the lexicon relation and then on the statement relation. The lexicon relation writes on the forward indices (TERM2ID, BLOBS) in parallel and then on the ID2TERM index. Then on the statement indices. However the ID2TERM index can be written in parallel with the statement indices.
In fact, we are currently doing all the lexicon writes in sequence, which is bad:
- BLOBS (and SEARCH if enabled, in sequence).
- TERMS (TERM2ID then ID2TERM then SEARCH)
Note that the last SEARCH actually appears to be redundant?!? with the others. I've copied the specific code block from the end of the public addTerms() method below.