sql - How can I tell Django to execute all queries using 10MB statement mem? -


i'm using django postgresql database.

i'm having limited access database configuration , can't alter postgresql.conf.

however if want execute queries through django specified statement_mem settings 10mb.

i tried using cursor.execute("set statement_mem='10mb'") - working how can write in generic way - each every api calls go using setting?

wrap cursor in own class executes cursor.execute("set statement_mem='10mb'") on every call otherwise mimics cursor class. "monkeypatch" real cursor class too, confusing.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -