nickva opened a new pull request, #4473:
URL: https://github.com/apache/couchdb/pull/4473

   Filter view functions feature re-uses view map function for filtering 
_changes feeds. Instead of accumulating emitted KVs, it uses custom emit() 
function which just toggles a flag. However, in order to use this optimisation, 
the function is compiled first with the regular emit function, then the 
function source is queried with a non-portable toSource() method, and 
re-compiled again with a new sandbox where emit is overridden.
   
   Instead of reparsing and re-compiling it, pass the sandbox to the compile 
function and compile filter views with that correct sandbox to start with. 
Moreover, this helps remove another non-portable function call.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to