I have a problem when saving large documents (on some databases > 5 MB, on others > 10 mb).
Here’s the procedure:
Front-end is sending a request.
Back-end recieves the request and tries to save it.
The save method finishes but the document ID is null.
The save procedure is actually finished okay, the document is saved and it has its own ID. It feels like the save method finishes before its actually done and the save needs some time to save a document this large.
SELECT *
FROM qms
USE KEYS '24b49e61-2043-4b68-bc7f-a99be9f0ae1a'
This query is taking a long time to finish.
Sometimes I also get a timeout exception (Please see Image 2).
Images 3 shows the request is OK (200) but the ID is null. (File has 9.63 MB)
Image 4 shows the same requests but with a smaller file (1 MB). This time I got the id.
I’m using Spring data Couchbase (https://spring.io/projects/spring-data-couchbase#overview)
Spring boot version : 2.2.4.RELEASE
Couchbase version 6.0
I’m saving files in base64 format, as a property of a document.
I tried to set timeout time with spring.couchbase.env.timeouts.connect=10000ms
https://ibb.co/CWvPJ3g - Image 2
https://ibb.co/VqbYwWt - Image 3
https://ibb.co/bggcFJH - Image 4
https://ibb.co/QJbzpBH - Image 5
https://ibb.co/TP4S3YM - Image 6