h...@all,
i have read various posts, blogs.... about the nhibernate caching
methods. For me it is good that my SysCache2 configuration is working.
But it is only working in parts and i have a few problems in my
understanding if this is an configuration failure on my side or if
there is something other wrong.
So i have the following HQL Query
return Session.CreateQuery(@"
select something.....")
.SetParameter(0, aParameter)
.SetParameter(1, aSecondParameter)
.SetCacheable(true)
.SetCacheRegion("10Minutes")
.List<aClass>()[0];
The returning class itself has some references to other tables which
are configured via an one-to-many relationship. When i call this query
then the first time the sql is fired against the database. So the base
objects and the referenced objects are fetched from the database. If i
do this a second time, then only the referenced objects are fetched
over sql again. But why? I think i have configured that everything
should be cached.
And here is where my understanding in nhibernate caching ends. Are
only the base objects cached? Why arent the referenced objects cached?
I read about the query cache and the entity cache. I think that here
the query cache is used. How can the referenced objects be cached?
It would be very good if someone could help my with this. I am really
optimistic that this problem is solved already.
Please let me know if you need more informations.
Thanks in advance for your help
Regards
eigeneachse
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" 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/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---