> I'm just facing a problem with little longer runnig SQL select command, and DJago framework returns a "504 Gateway Timeout" after aprox 10 seconds. My sql command is executed on Oracle SQL database through "django.db.backends.oracle" driver.
You'd have to change multiple timeouts to make this work. There are several approaches in similar situations, pick what suits your situation (which you have not described in detail).
- calculate data *before* user requests it and keep the calculated copy
- caching of any data that takes long to compute (retrieve) - can and should be combined with above
- using asyncronous queries, typically achived via celery (django-celery) and some AJAX calls
You need to provide more details about your long-running query if you need people to help you further.
Cheers
Jirka
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment