-
Notifications
You must be signed in to change notification settings - Fork 1k
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
error while loading database file #442
Comments
I got the same error. With a 300mb library. |
NeDB loads the full database into memory. Such large databases are not going to work. Please use Mongo or another non-embedded database. |
NeDB is indeed not meant for this amount of data, maybe a note could be added about the max recommended size of a database in the README ? |
Using nedb on an application the following error occurs when the serving process was triggered: Feathers application started on localhost:3030 Error: ENOENT: no such file or directory, rename '/Users/kaiquesilva/pieces/feathers-scrape-it/data/users.db~' -> '/Users/kaiquesilva/pieces/feathers-scrape-it/data/users.db' |
I'm nothing using emacs, the current file mention on that error does not exists. |
@kaiquewdev, I am having the same issue as you right now, did you find any solution to that? Thanks. |
I have a small DB with roughly 400 small items, around a hundred characters each. I am using
where doc is the item from db.find({name:object.name}) and object is an slightly edited version of that object. I am guessing because of the way nedb works, it has appended the edit to the bottom of the database.db file without erasing previous version of the item, getting me a 285 mb database that prevents my application from launching. Is there any fix for this? |
It should not, you should check that you call If you're looking for a more scalable Library, I switched to LinvoDB3 some time ago, slower but far more scalable in terms of amount of data. |
@KeitIG I call update at line 60 in this file. I can confirm that the items does update and are registered with the same ID in the database file, with older versions towards the top of the file and the newer copy on the bottom. |
This would probably be relieved with PR #463. |
i have a database file which i load using your sample code:
then i get this error:
any ideas? i could send you the file if it helps (it is 35mb zipped, 639mb unzipped, but i previously had the error with smaller files as well). the error is not catchable...
thanks for looking into this
The text was updated successfully, but these errors were encountered: