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

Disable mongoid's identity map during importing#884

Open
dzhlobo wants to merge 1 commit intokarmi:masterfrom
dzhlobo:mongoid-identity-map
Open

Disable mongoid's identity map during importing#884
dzhlobo wants to merge 1 commit intokarmi:masterfrom
dzhlobo:mongoid-identity-map

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.

2 participants