I'm using pathom in clojurescript to do very basic joins from a clientside 
db (atom).  I have a a simple resolver that takes an id and outputs the 
scalar values of that entity (via a key lookup in the hashmap db).

I then have a global resolver that returns all entity ids in the db, and 
resolves each one via the single entity resolver defined before.

Querying the list (only 500 records) takes nearly 700 ms on my laptop.  
Each resolver is simply doing a key lookup in a hashtable in memory and 
returning a few scalar values from one resolver.

My custom clojurescript code that was doing the lookups and joins manually 
via hashtables returns in 11 ms fully realized.

I can post the code but it's dead simple pasted from the doc examples.

Am I using the library correctly?  Is pathom meant to always start from a 
specific entity in the graph and isn't meant to query many entities like 
this?

I've tried changing to a batch resolver but it makes no difference seeing 
as this is an entirely in-memory db.

Any insights are appreciated.

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojurescript/9970484e-f55e-403f-ba97-449848be65ebo%40googlegroups.com.

Reply via email to