How are images viewed in CouchDB on disk?

I understand that CouchDB views are pre-computed, now I wonder what storage cost per view is. How can this be estimated? Is this the raw JSON size for the emitted data?

To be more specific, this is BigCouch (Cloudant).

+4
source share
1 answer

I cannot give you a rule for evaluation, but here you must consider several factors.

  • CouchDB uses storage only for applications, so your database (and view) files will grow as you update data. To free up unused space, compaction is required.
  • Disk size data can be extracted using the _info endpoint of the project document
  • CouchDB uses a B-tree data structure for indexing, so a serialized JSON space + some overhead for the tree is required for presentation
  • Starting with version 1.2, CouchDB by default compresses the database and browses files using snappy
  • If you are interested in insides, there are discussions here , here , here and here .
+2
source

Source: https://habr.com/ru/post/1499944/


All Articles