DataScript
Immutable database and Datalog query engine for Clojure, ClojureScript
... DB, when you query DataScript, it all comes down to a Hashmap lookup. Or series of lookups. Or array iteration. There’s no particular overhead to it. You put a little data in it, it’s fast. You put in a lot of data, well, at least it has indexes. That should do better than you filtering an array by hand anyway. The thing is really lightweight. The intention with DataScript is to be a basic building block in client-side applications that needs to track a lot of state during their lifetime.