Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

Disable mongoid's identity map during importing #884

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dzhlobo
Copy link

@dzhlobo dzhlobo commented Oct 5, 2013

Iterating over all documents in collection with enabled identity map will fill memory until task will be killed by OS.

From mongoid doc: "When a document is now loaded from the database, it is automatically added to the identity map by its class and id. Subsequent request for that document by its id will not hit the database, but rather pull the document back from the identity map itself".

See http://mongoid.org/en/mongoid/docs/identity_map.html for additional information about identity map.

Iterating over all documents in collection with enabled identity map
will fill memory until task will be killed by OS.

From mongoid doc: "When a document is now loaded from the database, it
is automatically added to the identity map by its class and id.
Subsequent request for that document by its id will not hit the
database, but rather pull the document back from the identity map
itself".

See http://mongoid.org/en/mongoid/docs/identity_map.html for additional
information about identity map.
@karmi
Copy link
Owner

karmi commented Nov 26, 2013

Bump @karmi

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants