This was the solution I ended up going with
# orm-help
s
This was the solution I ended up going with
If anyone has thoughts on the performance of this, let me know. It’s averaging around 30ms to complete right now in my test DB.
i
Try to create like 100000 emails and place all of them as friends, then run a query
👍 1
I see nothing fishy right now, probably this will be like 500ms max
c
You could create an executeRaw(sql) test and compare the perf to an optimized query
s
@cb I was actually trying to do that but I couldn’t get it to work. I probably will figure it out down the line, but this works for now.