Skip to main content

One doc tagged with "Performance"

Performance of Mercury DB (HgDB), for example the execution time of Lucene queries, and the settings and tools that tune it, such as the calibration of the query optimizer.

View all tags

Calibrating the Lucene query optimizer

A query with a condition on a child case (for example address.county root first or child first. The optimizer of Mercury DB (HgDB) 3.0 chooses the way with a threshold, lucene.query.cost.childFirstRatio. The best value depends on the data and on the version of the engine, so it should be measured, not guessed. The command -lc of mercury-cmd measures it on the index of a node and prints the result. It never changes the configuration itself.