@apa512: what are the odds you hang out on this slack? π
or any other devs of clj-rethinkdb, I suppose...
i visit occasionally. what's up?
I had opened the GH issue the other day regarding us trying to inspect a rethink query before it's sent to rethink
You had mentioned rethinkdb.query-builder/parse-term
which gives us, well, this....
(5,500 lines)
So, I mean, correct me if I'm wrong, but this can't be what's literally sent over the wire to Rethink? My limited understanding was that the output should look something like what you might type into the RethinkDB browser query tool? (E.G. http://puu.sh/q71aE/9ba077ca4d.png)
Or am I just way off base here
this is what's actually being sent, only converted to a json string. you can read more about it here: https://rethinkdb.com/docs/writing-drivers/#serializing-queries. is it a complicated query? 5,500 lines seems a bit crazy unless it includes data being inserted.
heh, so we're running into a number of issues in production
I guess what we did was locked a junior dev in a closet for 6 months to write all of our queries
cue them leaving the company, cue us running into prod issues RE query performance
annddd now we're trying to make sense of it (and trying to make sense of how one of these queries is 5,500 lines...) lol
Sometimes just rewriting a component is saner than figuring out itβs inner workings
i see. that's a tricky situation. i can't make much sense of wtf.clj, but it seems likely that you're sending some very unoptimized queries.
π