couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <j...@couchbase.com>
Subject Re: CouchDB: Storing Files and Performance
Date Tue, 30 Jul 2013 04:24:17 GMT

On Jul 29, 2013, at 7:34 PM, Manokaran K <manokaran@gmail.com<mailto:manokaran@gmail.com>>
wrote:

It is better to store it as an attachment to take advantage of CouchDB's
replication features. If you only store the path then you have to sync the
files yourself.

On the other hand, attachments are stored inside the database file, so during compaction they
have to be copied into the new file. This isn't usually a big deal, but if you have a lot
of big attachments, they can slow down compaction. (For example, storing your 100GB MP3 library
as attachments is probably not a good idea.)

—Jens

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message