YesSql query using the same index twice #17011
Answered
by
lampersky
kevinasdzine
asked this question in
Q&A
-
I thought I had a solution for this before but I'm not finding a reference to it now. I have a content type with two date fields, "Start" and "End". I want to query for content items where Start is < DateTime.today and End > DateTime.today. However, if I include two
|
Beta Was this translation helpful? Give feedback.
Answered by
lampersky
Nov 18, 2024
Replies: 1 comment 8 replies
-
At first glance, this condition should return no results, could you try to split your query into two queries instead |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in yessql there are "Any" and "All" methods, you could use "All" against your index with multiple predicates, an example from YesSql repo: