Hi @asgardar,
Thank you for your interest.
Yes, you can attach files to the database
https://www.tutorialspoint.com/couchdb/couchdb_attaching_files.htm
and can set the limit of the attachments
This question is really specific and we can only offer support and help on basic and most frequent application configurations. Always based on the default configuration or on our guides. Probably someone with more experience and knowledge about that specific tool can help you better than we can.
We suggest you to post your question on the official support forums so others can help you with your issue.
http://couchdb.apache.org/
http://docs.couchdb.org/en/2.1.1/