-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make maximum documents size configurable #4233
Comments
Let's provide a testing CLI flag for that |
The error appears to come from the driver. See https://github.com/mongodb/mongo-go-driver/blob/v1/x/mongo/driver/batches.go#L17. So the request didn't reached FerretDB as the driver returned error before that. Let's see what we can do before we add testing CLI flag. |
It seems that |
That Update: |
In fact, this is indeed configurable 🙈 The value that sets driver was the response from isMaster command's |
What should be done?
It appears that FerretDB inherit the 16MiB document size limits from MongoDB. It is not pretty reasonable nowadays.
I think we can have an option to tweak the default limit.
FerretDB version
v1.21.0
Backend
PostgreSQL 12.7
Steps to reproduce
mongoimport
a document larger than 16MiB to FerretDB. Thenmongoimport
exits with the errorFailed: an inserted document is too large
.The text was updated successfully, but these errors were encountered: