Duplicated queries for multiple unicorn templates #606
Unanswered
hamidrabedi
asked this question in
Q&A
Replies: 1 comment
-
Unicorn won't change how Django executes querysets normally. So, if Django would normally have duplicate database calls when a queryset is retrieved the same will happen in Unicorn. You might be able to cache the data or store it in the component maybe? I can't quite tell what is going on here, but if you can create a replicate-able repo which I could try out I can help debug what is happening. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm attempting to leverage the reusability of templates and variables, but whenever I invoke "unicorn," it triggers all the queries again:
My View:
and unicorn view:
i also have a context processor:
So now the problem is that each time i call the unicorn view all the queries get called again, same as context processor queries! :
Have i done something wrong? or is it related to unicorn itself?
Beta Was this translation helpful? Give feedback.
All reactions