r/CouchDB • • Jul 28 '23

CouchDB repeatable performance testing

How well does CouchDB perform with 100,000 per-user databases supporting "live" users? Are there any readily available and repeatable online tests to gauge its performance?

I find the implementation of CouchDB to be laborious, time-consuming, and not enjoyable. I'm concerned that the advantages of replication might not justify the effort and inconvenience involved in using CouchDB.

3 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/Dangerous_Biscotti63 Jul 31 '23

thanks for the long answer i see there are many confusions, let me try to clarify:

- both put and post can update or create, the difference is that post allows creating docs without a preset ID and have the db create it. this is mostly in line with the http spec

- i am not sure your example is of something weird happening in the db vs something in your application code. if you share the code of the loop someone could help you better. not sure i would implement it that way, why dont you just request the docs of the desired time range you want and then you can just run a cron job to delete old docs without a loop and with bigger batches than 5, more like 50 docs pages, as latency does not matter for this kind of implementation. also bulk delete uses the delete flag _bulk_docs [{_id: abc, _rev: 1-abc}, "_deleted": true] and returns an array of statuses for all the docs in the bulk operation.

- the direction of couchdb is very clear, 2 and 3 are decidedly not the goal, only 1. couchdb even actively discourages to use it like an object store and excplicitly only adivses to use attachments for things like tiny thumbnails or other small things, but everything else should be stored in somthing like s3 or ipfs and storing a link in the json doc.

- couchdb is famously simple to operate and i know many users who run it without any issues or intervention required for years. also there is IBM cloudant payed hosting (i think they even have a small free tier) with professional support, which is much improved compared to early days after the aquisition by ibm and there is also a number of one click cloud operators available, though i never tried them as i am quite happy with cloudant.

i totally agree the replication and multi-master features are quite unique and there are not many alternatives

1

u/[deleted] Aug 03 '23

Thank you. I've tried couple of more things regarding that design/view problem, but I still haven't figured what I'm doing wrong. I created a Stackoverflow question if anyone is interested taking a look: https://stackoverflow.com/questions/76830383/couchdb-design-view-not-returning-all-the-records-older-than-n-seconds

1

u/Dangerous_Biscotti63 Aug 04 '23

you forgot to add your design document code