Replies: 2 comments 3 replies
-
Hi @theronic this is expected and is a natural (unavoidable) consequence of how query execution happens. See the mention & recommendation here on deduplicating the result tuples: https://docs.xtdb.com/language-reference/1.21.0/datalog-queries/#streaming-queries |
Beta Was this translation helpful? Give feedback.
-
Hmm so XTDB has the inverse behaviour of Datomic here: by default, Datomic de-duplicates into a It seems unintuitive that db.openQuery and db.query should return different results. |
Beta Was this translation helpful? Give feedback.
-
Am I using Java’s
ICursor
impl. correctly when streaming query results from XTDB’s Java interface, or is this a potential bug in openQuery? If I run the following streaming query, I get two rows for every query result when there should be only one:However, when I run the same query as an eager, non-streaming query, I get the correct result of one row per result:
Beta Was this translation helpful? Give feedback.
All reactions