Nov-17-2016, 02:18 PM
Reading the table or part of it in to memory is one way to short the response time.
But first of, are you sure that the queries are causing the problem. Try it locally. Do a bunch of queries locally in the terminal and see how is doing. A short bash script should to it good enough. Time it. A bad Django code may slow down the response time too. Try a different template engine. Try to optimize the code of the current one.
But first of, are you sure that the queries are causing the problem. Try it locally. Do a bunch of queries locally in the terminal and see how is doing. A short bash script should to it good enough. Time it. A bad Django code may slow down the response time too. Try a different template engine. Try to optimize the code of the current one.