Hi,coming from Django I'm pretty used to a concept like lazy query evaluation. With this concept, you can construct queries before they hit the database. In this case an expression like:q = Entry.objects.filter(...)q = q.filter(...)q = q.exclude(...)print(q)Wouldn't query the database three times but only once in the last line (print statement). This is a super handy technique since it allows you to annotate all possible queries via middleware or a dedicated manager. Does something similar exist in Node (or a node ORM or Query Builder)?Thanks!
Submitted June 20, 2020 at 06:55PM by memo_mar
No comments:
Post a Comment