How do you know the query is cached? On Aug 16, 2016 6:33 PM, "술욱" <nbe...@gmail.com> wrote:
> I forgot to say I reloaded (and restarted) nginx and uwsgi, but the query > is still cached > > > Thanks anyway! > > > > > 2016-08-16 12:24 GMT-03:00 M Hashmi <mhashmi1...@gmail.com>: > >> Reload Nginx and see if still its loading cached query. >> >> On Tue, Aug 16, 2016 at 8:18 AM, 술욱 <nbe...@gmail.com> wrote: >> >>> Hello >>> >>> I'm running (in production) and app that uses raw queries, something >>> like: >>> >>> query = """ >>> select table1.field1, table2.field3 >>> from table1 left join table2 >>> on test1.field1 = test2.field1 >>> and test1.field2 = test2.field2 >>> where table1.field1 = %(param1)s >>> """ >>> >>> cursor = connections['database'].cursor() >>> cursor.execute(query, {'param1': param1-value}) >>> data = cursor.fetchall() >>> >>> >>> My problem is, somewhere, Django, uwsgi, or nginx, is caching this >>> query. >>> >>> How do I find who's caching? >>> >>> >>> Thanks, >>> Norberto >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Django users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to django-users+unsubscr...@googlegroups.com. >>> To post to this group, send email to django-users@googlegroups.com. >>> Visit this group at https://groups.google.com/group/django-users. >>> To view this discussion on the web visit https://groups.google.com/d/ms >>> gid/django-users/CADut3oCG%2Bc%3D8CFm5Mf0YiBtK3RMa-0KrZZG6wb >>> 0_ihDwkDmqkQ%40mail.gmail.com >>> <https://groups.google.com/d/msgid/django-users/CADut3oCG%2Bc%3D8CFm5Mf0YiBtK3RMa-0KrZZG6wb0_ihDwkDmqkQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users+unsubscr...@googlegroups.com. >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/django-users/CANoUts63A-mGo-KOYJHBFJtOut9gasWX3A8dso3%3D >> v0myFwgAgg%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CANoUts63A-mGo-KOYJHBFJtOut9gasWX3A8dso3%3Dv0myFwgAgg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/CADut3oBoqHS7JCV8vs2o2Z%2BHDsr5LQeTDnGm34bdPTJbcOkhDg% > 40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CADut3oBoqHS7JCV8vs2o2Z%2BHDsr5LQeTDnGm34bdPTJbcOkhDg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFWa6tKMSQ077%2BuRm-Kp1iGNS%2BUbGLcZihpE%3Dphwc69KNhJEVg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.