medic / cht-core

The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.
https://communityhealthtoolkit.org
GNU Affero General Public License v3.0
469 stars 217 forks source link

perf(#9642): set `changes_doc_ids_optimization_threshold` a high value #9651

Open dianabarsan opened 6 days ago

dianabarsan commented 6 days ago

Description

It appears that changes_doc_ids_optimization_threshold is still working and will provide us the same performance we had before.

9642

Code review checklist

Compose URLs

If Build CI hasn't passed, these may 404:

License

The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.

dianabarsan commented 6 days ago

Hi @sugat009 Would you mind running this branch and time purging on your test instance? Thanks!!

sugat009 commented 4 days ago

@dianabarsan The purge has been completed using this branch. It took 47.108 minutes for the same amount of docs as in #9303 .

dianabarsan commented 4 days ago

Ok, this is first time purging or second time? It doesn't really matter, but we're in the ballpark. I think Couch 3.3 time was 60 min right?

Then we'll go with this one.

sugat009 commented 4 days ago

yes, for couch 3.3.3 was ~60 mins.