My website is slow, possibly due to the SQLite query. Can you make it faster? It wasn't like this before.
My website is slow, possibly due to the SQLite query. Can you make it faster? It wasn't like this before.
What is the query doing exactly?
Just querying data. But there is very little, the .db is not even 1mb and it was not like that.
For some people the site takes a long time to load the javascript and rendertemplate and it was not like that.
Apparently it has to do with javascript. Do you know if it is a new Cloudflare configuration or a problem with pythonanywhere?
"to do with javascript" could mean anything. I'd suggest working out what is slow so you can describe the issue to us and then we can try to help you. If it's javascript, you can use the developer tools in your browser to get some insight into what is happening with your javascript.
What was happening was that the javascript was slow to load. There were some animated particles in the background of the site. It always worked correctly. Suddenly it got slow. I removed it and it went back to normal, but something really strange happened. Now I don't know if it's something with Cloudflare or PythonAnywhere. Thanks anyway. If you want, I can send you the particle code.
Are you serving JS script files from PythonAnywhere or somewhere else? Do you serve them as static files?