Hello,

Maybe what I'm asking don't make sense to the Datamapper context, but here
it goes:

In SQLAlchemy and Hibernate there's the concept of session context, where an
IdentityMap have references to the entities that are attached in the the
current session context. In these frameworks you have to eventually make a
session.clear() or session.close(). You normally use a clear() in Hibernate
to make batch inserts.

Anyway, my question is: is there any similar concepts in datamapper? I didnt
find anything in the docs. If i had a DAO like this:

class PessoaDAO
    def insert(pessoa)
        pessoa.save
    end
end

I could call this 1 million times without the fear of filling my system
memory? (Without a clear this would happen in hibernate, and without
autocommit i think that too would happen in SQLAlchemy.


Any guidance?

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to