Item value size in memcached bucket?

#1

Hi
I am using Couchbase server 3.0.1.
I am able to store binary data more than 1Mb against each key. But the documentation says the max item size would be 1Mb.

Whether my understanding is wrong? Please clarify

Thanks
Dinesh

#2

Could you point us at the doc that is declaring the 1MB. The value size limit is at 20MB.
thanks
-cihan

#3

http://docs.couchbase.com/couchbase-manual-2.2/#data-storage

Under memcached bucket column

Thanks
Dinesh

#4

The 20MByte is for “couchbase” buckets @cihangirb. The memcached buckets do in fact have a 1MByte size limit, just like memcached from memcached.org.

#5

Can you use “couchbase” buckets @Dinesh ?

#6

That is correct. missed the bucket type. thanks

#7

Sure @ingenthr. Even memcached bucket allows to store more than 1Mb.It seems, the data is compressed and stored. Please correct if i am wrong.

Thanks
Dinesh

#8

The memcached server itself doesn’t allow items over 1MByte by default, but it is true that some memcached clients will compress items by default. It’s also possible to change the settings to memcached to allow storing larger sizes.

Note that many Couchbase clients will also compress, but we also raised the item size to 20MByte with Couchbase buckets.

#9

Has this changed in 4.0? I find no mention of the 1MB limit in the manual, and this is a pretty important detail.

#10

AFIAK nothing has changed in 4.0. It’s been 20MB for Couchbase buckets and 1MB for memcache buckets since pretty much forever…