Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Support composite indexes #2660
Unless I missed some key information, it is not possible to create composite indexes in Dgraph. Supporting this feature would help some use-cases requiring filtering on multiple attributes of a tag.
Typical example of such feature would be a versioned graph, in which a node is associated with a name, a version number and some random parameters.
It's not clear what you're looking for. Can you follow the format of an experience report? What is it that you want to do, what did you currently do to achieve it, and why that wasn't ideal?
In dgrqph it is done by connecting multi filters, but I also doubt it's comparable to
Especially if 90% of your queries are composite index based the performance gap would be a concern I guess.
Jul 12, 2019
One way to get something similar to composite indexes is to allow indexes on facets. This would be a sort of composite index on the (edge, facet) combination. It wouldn't be as general as full composite indexes but it seems like this approach would also work well with the idea of sharding by predicate (along with its indexes).