nickva commented on issue #504: Opimize writing KV node append writes URL: https://github.com/apache/couchdb/pull/504#issuecomment-299289833 Made a script https://gist.github.com/nickva/b418ebf043fa93dfe2395f2d767d122d which creates views using a combination of various parameters. This is an example of 2 runs, one the left is with this PR then on the right is master. [btree_patched.txt](https://github.com/apache/couchdb/files/977339/btree_patched.txt) The script is adding 1000 documents, then varying `size `of emitted value - 10,1000, 10000, whether view should be queried after each inserted document or once at the end (`query`). Whether keys are ordered or random (`random_keys`) and a minimal key size (`min_key_size`). In case key is smaller than `min_key_size` it is expanded to be larger. (There is a better version of the script which generates a nicer output, will post that below when it finishes running https://gist.github.com/nickva/2304bc2f738769c15fac116b8453ec04) Interesting things to note: * For large emitted values and sequential keys this improves the size by more than 50% 12243075 vs 27463811 * With random keys sometime generated views are slightly larger Overall there is not significant increase in view_size and there is large increase in some cases. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
