]
Christian Bauer resolved HHH-2672.
----------------------------------
Resolution: Duplicate
Need Support Readonly Session
-----------------------------
Key: HHH-2672
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2672
Project: Hibernate3
Issue Type: New Feature
Components: core
Affects Versions: 3.2.4.sp1
Reporter: kindy wu
I think we need a readonly session to impove the Select performance!
code is like this:
session.SetReadonly(true);//or ReadonlySession rSession = new ReadonlySession(session);
Code cs = session.CreateQuery("From Code c");//table codes is very huge
if we set the session to Readonly then the Save,Update,Delete,SaveOrUpdate method is
disable.
and the entities that select from session is not need to write into session cache and
don't need to
generate proxy for lazy fetch.
In a Word Readonly Session work like ibatis and Support good Performance for huge Data
Collection.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: