You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding 100 documents, CouchDB sends the VDU functions for each and every document (meaning that the VDU functions are sent 100 times). This leads to poor performances.
Desired Behaviour
A better implementation would be to cache the VDU functions so they are not sent as often to the JS engine
Possible Solution
Caching the functions or at least calling them only once per DB call.
Additional context
The text was updated successfully, but these errors were encountered:
note that the function strings are cached (by load_validation_funs in couch_doc), but we send them to couchjs on every doc update, so we don't get any benefit from JIT and we're bloating the message we send to validate_doc_update over stdio.
see if we can do better here.
related PR #1898 which proposes another way to do VDU's without javascript at all.
Summary
When adding 100 documents, CouchDB sends the VDU functions for each and every document (meaning that the VDU functions are sent 100 times). This leads to poor performances.
Desired Behaviour
A better implementation would be to cache the VDU functions so they are not sent as often to the JS engine
Possible Solution
Caching the functions or at least calling them only once per DB call.
Additional context
The text was updated successfully, but these errors were encountered: