Is it possible to suggest eviction?
I'm planning to use a couchbase bucket for both data storage and database.
This means that I have essentially 2 kind of documents stored in the bucket:
1. JSON like objects which will be accessed through views (~ few Kb data)
2. Binary data, just key indexed (~ few hundreds Mb, 100-300Mb), but on which I need MVCC for detecting concurrency issues.
I understand that attachments are not supported yet, and I don't care, I can very well assign a key to my BLOBs and store them as independent documents.
What I find "funny" is the 20Mb limit on BLOBs, but for that I can use a client workaround and split it in chunks.
What I really can't avoid is the Temporary Failure error when I'm uploading on the Couchbase too much data at once.
I understand that I can "retry later", because the eviction system is evicting (flushing on disk) some of my documents, but I don't know how much later I will have to try.
Since I know that my BLOBs don't need sub-millisec access, can I suggest to the Couchbase to evict them as soon as possible? This way I wouldn't have to cope with Temporary Failure that often.
If you think I'm missing something and you can suggest me a better way to achieve the purpose, please suggest.
The point I'm trying to make is: there are some documents for which I need low latency, but for others I don't. For large BLOBs I typically don't need low latency (network data transfer is going to dump the performance anyway), therefore I'd like those BLOBs not to stay in RAM on my Couchbase