You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/12/21 03:58:59 UTC
[GitHub] garrensmith commented on issue #1425: Add `conflicts: true` option
to mango selectors
garrensmith commented on issue #1425: Add `conflicts: true` option to mango selectors
URL: https://github.com/apache/couchdb/pull/1425#issuecomment-449236584
No, not all all. Exists: false will affect index selection since no field with exists false can be in an index.
________________________________
From: Joan Touzet <no...@github.com>
Sent: Thursday, December 20, 2018 10:53 PM
To: apache/couchdb
Cc: garren smith; Mention
Subject: Re: [apache/couchdb] Add `conflicts: true` option to mango selectors (#1425)
@wohali commented on this pull request.
________________________________
In src/mango/test/19-find-conflicts.py<https://github.com/apache/couchdb/pull/1425#discussion_r243414057>:
> +CONFLICT = [
+ {
+ "_id": "doc",
+ "_rev": "1-23202479633c2b380f79507a776743d5",
+ "a": 1
+ }
+]
+
+class ChooseCorrectIndexForDocs(mango.DbPerClass):
+ def setUp(self):
+ self.db.recreate()
+ self.db.save_docs(copy.deepcopy(DOC))
+ self.db.save_docs_with_conflicts(copy.deepcopy(CONFLICT))
+
+ def test_retrieve_conflicts(self):
+ self.db.create_index(["_conflicts"])
@garrensmith<https://github.com/garrensmith> sorry to ask this so late, but are you saying that all $exists queries always perform a full DB scan and ignore secondary indexes?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://github.com/apache/couchdb/pull/1425#discussion_r243414057>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAK9As9Sbonh0IkmlQ1zkwzkP72Oqhj2ks5u6_i_gaJpZM4VGu6Q>.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services