AlexanderKaraberov commented on issue #1142: fabric:query_view/4 fails if 
number of docs in the DB is more than 60
   Hi @davisp , 
   Thanks for the explanation! Regarding my use case (namely fine-grained 
filtering in `_changes` feed) I'm planning to implement an alternative 
implementation to avoid misuse of the ` rexi_util:recv`. Basically I want to 
call `fabric:query_view` only once in `chttpd_db:handle_changes_req` then store 
a response in the `ETS` table and then use it like this to do the actual 
filtering instead of `couch_query_servers:filter_view()`:
       Passes = case couch_util:get_value(row, lists:first(ets:lookup(Resp, 
ViewResp)), undefined) of
               undefined ->
                 lists:map(fun (_) -> false end, Docs);
               Object ->
                 lists:map(fun (_) -> true end, Docs)
       filter_revs(Passes, Docs);
   What is your opinion about this approach? Or maybe you may give a hint on 
how to implement this in  a better way?

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:

With regards,
Apache Git Services

Reply via email to