James,

I think you're right, I will have to check how this is implemented.
Our group is formed mostly by Java developers, and ASP.NET is pretty
new to everyone. Thanks for the tip, will keep doing research on FNH.

Cheers,
Henrique Cabral

On Thu, Aug 12, 2010 at 4:31 PM, James Gregory <jagregory....@gmail.com> wrote:
> I think you're mistaken about where FNH is used, and when it does it's
> work. Fluent NHibernate should only be initialised upon application
> startup; in the case of a web application that'd be in your
> Global.asax or something similar. The SessionFactory is then stored
> (in a global, singleton, static, whatever) and reused throughout the
> application lifecycle. Sessions are only used to open database
> connections, there's no "mapping" taking place.
>
> On 8/12/10, Henrique Cabral <hcab...@gmail.com> wrote:
>> Hey everyone,
>>
>> Following this thread, I'm interested in knowing if anyone has any
>> further ideas about performance. My app is made in asp.net, and I'm
>> trying to follow the motto that "database connections are too
>> expensive", and each request that needs data opens a Session, then
>> maps objects, and so on.
>>
>> I'm prematurely reaching the conclusion that this is not viable.
>> Creating XML mappings for each build defeats the elegant purpose of
>> FNH. I started to think in Java (app server) and service tiers, since
>> database connections are not really that expensive to me yet.
>>
>> So, any thoughts?
>>
>> Cheers,
>> Henrique
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Fluent NHibernate" group.
>> To post to this group, send email to fluent-nhibern...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> fluent-nhibernate+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/fluent-nhibernate?hl=en.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Fluent NHibernate" group.
> To post to this group, send email to fluent-nhibern...@googlegroups.com.
> To unsubscribe from this group, send email to 
> fluent-nhibernate+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/fluent-nhibernate?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibern...@googlegroups.com.
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.

Reply via email to