You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're just looking to see how cachalot improved db queries, then you can create a timer object around where you're calling your queries. There's a chance most of the time is coming from latency, not the actual queries. This is especially try if you don't have enough data or your queries are not complicated.
The changing of keys might be a concern. It depends on what your query is and if you're doing any INSERTs/UPDATEs (which I don't think you are since this is a GET request).
Thanks for your answer. Yes the executed benchmark only perform a get operation.
Actually I tried at first with the default "site based cache" and the script help me to identify that I passed from 9 request to 80 request per seconds.
But... after updating a model the same page was still sent 😅.
And so I discovered cachalot which invalidate in case of INSERT/UPDATE/DELETE.
But, after adding it I was expecting to retrieve the same result as the full site cache based.
But no, with or without the cachalot app enabled I have around 9 request per seconds...
Actually I tried at first with the default "site based cache" and the script help me to identify that I passed from 9 request to 80 request per seconds.
But... after updating a model the same page was still sent 😅.
I believe that's supposed so happen. Site based cache uses HTTP headers to denote that a request should re-utilize a client cache of the website previously given (I think through Cache-Control).
Hello guys,
I've setup cachalot on my project. I use then this script to compare the perf:
The script uses httperf and loadtest .
I was expecting some perf enhancement when I enable cachalot but I have the same number of request per second.
I've checked with a script that redis was actually "moving".
I can see that the number of keys changes when I browse some pages of my app.
Is that relevant to benchmark from an outside tool like I did? How can I check that this lib actually improved my GET pages?
Many thanks !
My conf
The text was updated successfully, but these errors were encountered: