Did v11 do anything to improve MariaDB performance? (or os that in v12?)

I remember reading a thread (that I can no longer seem to find) where there was a discussion about tuning MariaDB to reduce the CPU time that it uses and improve it’s efficiency.

I also thought I remembered that part of that thread talked about integrating the improvements into the next version. This has been in the past 5 or 6 months that I remember reading all of this on the forum here.

Can anyone from the development team tell me if the improvements made it into v11?

The reason I ask is that I have a client using v10 and their database is quickly approaching 2gb in size and I would be looking to move them to a new version once I know there is going to be a performance benefit for the database.



Perhaps you refer to this [Performance] 1 Sales Invoice Save makes ~700+ DB calls. ~1000+ DB calls on Submit

What PR corresponds to this, to trace and confirm the above refinements to caching and/or reduced calls to the database, is the question?

I don’t think database size affects performance. MySQL can handle terabytes! However individual tables can grow large that may require indexing, but I am no expert.

1 Like

You are partially correct. There was in fact another thread after this as rmetha indicated should happen before he closed the thread in your post. It is the follow up thread that I was trying to find. In it a developer had indicated he was going to make a PF for it.


I think I might have stumbled upon it:

You are correct! that was it.

And searching the PRs, it appears it was never done. So I guess we may never know if the core devs took it upon themselves to do something similar. I didn’t see anything in the release descriptions.

Thanks for remembering and posting back.


You’re welcome. I think it’s good I’m slightly behind in some things. However it is becoming more relevant as more enterprise customers are desiring performance improvements with ERPNext, and especially given the topic of the conference this year!

I really hope I can scale my startup quickly so we can begin contributing back and taking up pending development topics with my team.

Changes related to this were done in a combined code sprint between Frappe and ElasticRun. We introduced two key apis - get_cached_doc() and get_cached_value().

With these changes, there was ~4 times performance improvement in v11.

If you are attending the coming ErpNext conference, we would be presenting the changes we did for gaining up to 200 times !!! improvement (number of concurrent requests processed) over v11 version.


:+1: well done!!