Skip to content

YesSql query using the same index twice #17011

Answered by lampersky
kevinasdzine asked this question in Q&A
Discussion options

You must be logged in to vote

in yessql there are "Any" and "All" methods, you could use "All" against your index with multiple predicates, an example from YesSql repo:

                var query = session.Query<Article>()
                    .Any(
                        x => x.With<ArticlesByDay>(x => x.DayOfYear == 305),
                        x => x.With<ArticlesByDay>(x => x.DayOfYear == 306)
                    );

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@kevinasdzine
Comment options

@hishamco
Comment options

@lampersky
Comment options

Answer selected by kevinasdzine
@kevinasdzine
Comment options

@hishamco
Comment options

@kevinasdzine
Comment options

@sebastienros
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants