ethul/oregano

Unnecessary DB queries for relations

Closed this issue · 0 comments

In the indexUrls function, on lines 150-151, we can see that unnecessary DB queries are being made: two for each node returned from the adds relation query.

This causes too much load on the DB and slows down the query to about 12 seconds.