0
  1. What is the maximum number of docs that can be saved in a single database in CouchDB?
  2. What is the maximum size of a single database in CouchDB?

I need to save millions of documents in a single database in CouchDB. So I want to know If there is a maximum limit so that It won't create any problem while searching for a document using views.

Rahib Rasheed
  • 317
  • 1
  • 10
  • There's no hard coded limit. But you may begin to experience performance degredation at some point, which is probably impossible to predict. It will depend on your hardware, data structure, indexes, etc. Is it working well enough for you now? – Jonathan Hall Jul 07 '21 at 12:22
  • No, It is not. I need to upload 50 million docs in one database, but the process is crashing even before it reaches 1 million. And Yes, I am using a server with pretty decent specs. – Rahib Rasheed Jul 07 '21 at 12:27
  • 1
    I'd focus on why it's crashing. What do the logs say? – Jonathan Hall Jul 07 '21 at 13:21
  • It was crashing because the cpu was exhausted. I'm trying to limit the simultaneous numbers of bulk inserts and try it. – Rahib Rasheed Jul 11 '21 at 20:29
  • 1
    No, that's not why it crashed. "CPU exhaustion" isn't a thing. Unless you literally mean the CPU overheated, in which case you have a clear resolution: Get non-faulty hardware. Look at your actual logs. What reason does it give you for the crash? – Jonathan Hall Jul 12 '21 at 07:09
  • This was the error which was coming repeatedly in couchDb logs : `fabric_worker_timeout update_docs`. And when I checked the cpu usage I could see that all cores of the cpu was used to 100%. – Rahib Rasheed Jul 12 '21 at 13:03
  • What OS are you using? – gdelfino Jul 14 '21 at 19:51
  • CentOS 7. I think it was crashing because the request getting timeout. I'm getting 504 gateway timeout responses from Couchdb. – Rahib Rasheed Jul 15 '21 at 08:56

0 Answers0