Is it true that if I specify details in the mapping xml file
like for example the data-type of the property the length and othe
constraints,
would result in a faster startup and better performance?
(I came to this idea when I enabled the log4net Logging library, and
got
a bunch of mapping and reflection statements in the logfile.txt, I
think Nhibernate was trying
to figure out what kind of data-type I am using in my POCO classes...
and therefore
consuming time and energy.
Let me show what I mean:
For example this is a mapping without specifying any details, just the
property names
<class name="Artikulli" table="Artikulli">
<id name="ID">
<generator class="native" />
</id>
<property name="Emri"/>
<property name="Pershkrimi"/>
<property name="Data"/>
</class>
And this is a mapping with data-type, length etc.
<class name="Article" table="Article">
<id name="ID" column="ID">
<generator class="native" />
</id>
<property name="Name" type="String" length="50"/>
<property name="Desc" type="String" length="50"/>
<property name="Date" type="DateTime"/>
</class>
The question is "Is this configuration going to be faster?" Consider
when you have 20 or more entities
Is the impact on performance only in startup? Or is it olso during
CRUD operations?
Visar
--
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.