Details
-
Improvement
-
Resolution: Fixed
-
Major
-
5.5.0
Description
When KV does the key statistic tracking it first determines if key-exist as part of the flushing loop by using couchstore_docinfos_by_id to determine if keys exist, then it stores the new changes (via couchstore_save_docs) and updates the stats
It is likely that combining the save and update/exists logic together would be more efficient.
This is already implemented here https://github.com/jimwwalker/couchstore/commit/220c4f74b5863663b3d618654b29c78e491cf5fa
Attachments
For Gerrit Dashboard: MB-30125 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
96051,9 | MB-30125: Add a callback to discover if a key is added/replaced | master | couchstore | Status: MERGED | +2 | +1 |
96065,6 | MB-30125: Use couchstore_save_documents_and_callback for stat tracking | master | kv_engine | Status: MERGED | +2 | +1 |
97992,2 | MB-30125: Provide old and new DocInfo for savedocs_and_callback | master | couchstore | Status: MERGED | +2 | +1 |
97994,3 | MB-30125: Update savedoc callback as per couchstore changes | master | kv_engine | Status: MERGED | +2 | +1 |