threatgrid / asami

A graph store for Clojure and ClojureScript
Eclipse Public License 1.0
637 stars 29 forks source link

Optimize simple queries #26

Closed quoll closed 5 years ago

quoll commented 5 years ago

There are many queries to resolve a single pattern. However, these go through the optimizer, and reduction just like any other query, which is a lot of unnecessary work. This has shown up as a hot spot when being used in browsers, as per IROH-UI #906 (Private repo).

Address this by short circuiting simple queries to perform a simple projection over an index lookup.

quoll commented 5 years ago

Fixed in release-0.3.0