What I want to do
Let’s imagine that I have a graph with ~200 authors
and each author can have multiple related entities (posts
, photos
,videos
, …). These related entities can be ~1M for each author. For example, an author can have 1M posts.
If I want to search for posts for a specific author is the following query efficient?
query {
queryAuthor(authorID: "0x2") {
name
posts(filter: {
score: {
gt: 10
},
and: {
completed: true
}
}) {
title
text
datePublished
}
}
}
Are indexes defined inside posts used? Let’s say that I have an index on score
field.
Composite indexes are not supported yet, right? So for example in the above case only the index defined in the score will be used?