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
Post a Comment