-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: Building Session Factory Slow?
PostPosted: Thu Jun 08, 2006 3:16 pm 
Newbie

Joined: Thu Mar 30, 2006 2:10 pm
Posts: 14
Hibernate version: 1.0.2

Name and version of the database you are using: MSSQL 2000

Microsoft Framework: v1.1

Hello,

Just got a quick question, any reason why building the session factory takes so long? Check the attached:

2006-06-08 15:11:57,907 [3336] INFO NHibernate.Impl.SessionFactoryImpl [(null)] - building session factory
2006-06-08 15:12:11,376 [3336] INFO NHibernate.Impl.SessionFactoryObjectFactory [(null)] - no name configured

Almost 15 seconds between building the session factory and continuing, this is after compiling the application and hitting the website.

Any tips would be appreciated, if you need anythign further just ask :)

Cheers,
Timothy Grant Vogelsang


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 08, 2006 3:41 pm 
Senior
Senior

Joined: Sat Mar 25, 2006 9:16 am
Posts: 150
That is known to be slow because of all the reflection, but you only need to do it once at app startup. 15 seconds sounds a little extreme though.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 08, 2006 3:47 pm 
Newbie

Joined: Thu Mar 30, 2006 2:10 pm
Posts: 14
Code:
2006-06-08 15:26:28,771 [3336] INFO  NHibernate.Cfg.Environment [(null)] - NHibernate 1.0.2
2006-06-08 15:26:28,771 [3336] INFO  NHibernate.Cfg.Environment [(null)] - Using reflection optimizer
2006-06-08 15:26:28,771 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Searching for mapped documents in assembly: ProjectModel
2006-06-08 15:26:28,849 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Address.hbm.xml
2006-06-08 15:26:28,896 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:28,896 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.Address -> dt_Address
2006-06-08 15:26:28,896 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Note.hbm.xml
2006-06-08 15:26:28,912 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:28,912 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.Note -> dt_Note
2006-06-08 15:26:28,912 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.BillingCycle.hbm.xml
2006-06-08 15:26:28,912 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:28,912 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.BillingCycle -> rt_BillingCycle
2006-06-08 15:26:28,912 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.BusinessType.hbm.xml
2006-06-08 15:26:28,912 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:28,927 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.BusinessType -> rt_BusinessType
2006-06-08 15:26:28,927 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Province.hbm.xml
2006-06-08 15:26:28,927 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:28,927 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.Province -> rt_Province
2006-06-08 15:26:28,927 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.NoteType.hbm.xml
2006-06-08 15:26:28,927 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:28,927 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.NoteType -> rt_NoteType
2006-06-08 15:26:28,927 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.MembershipContactLink.hbm.xml
2006-06-08 15:26:28,927 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:28,927 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.MembershipContactLink -> dt_MembershipContactLink
2006-06-08 15:26:28,943 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.ReasonJoined.hbm.xml
2006-06-08 15:26:28,943 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:28,943 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.ReasonJoined -> rt_ReasonJoined
2006-06-08 15:26:28,943 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.PrivilegeOperation.hbm.xml
2006-06-08 15:26:28,943 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:28,943 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.PrivilegeOperation -> dt_PrivilegeOperation
2006-06-08 15:26:28,943 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.ContactTitle.hbm.xml
2006-06-08 15:26:28,943 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:28,943 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.ContactTitle -> rt_ContactTitle
2006-06-08 15:26:28,959 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.City.hbm.xml
2006-06-08 15:26:28,959 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:28,959 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.City -> rt_City
2006-06-08 15:26:28,959 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Level.hbm.xml
2006-06-08 15:26:28,959 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:28,959 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.Level -> rt_Level
2006-06-08 15:26:28,959 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.ContactPosition.hbm.xml
2006-06-08 15:26:28,959 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:28,959 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.ContactPosition -> rt_ContactPosition
2006-06-08 15:26:28,959 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Dropped.hbm.xml
2006-06-08 15:26:28,959 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:28,974 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.Dropped -> rt_Dropped
2006-06-08 15:26:28,974 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.MembershipStatus.hbm.xml
2006-06-08 15:26:28,974 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:28,974 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.MembershipStatus -> rt_MembershipStatus
2006-06-08 15:26:28,974 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Privilege.hbm.xml
2006-06-08 15:26:28,974 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:28,974 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.Privilege -> dt_Privilege
2006-06-08 15:26:28,974 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Role.hbm.xml
2006-06-08 15:26:28,974 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:28,974 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.Role -> dt_Role
2006-06-08 15:26:28,974 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Membership.hbm.xml
2006-06-08 15:26:28,990 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:28,990 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.Membership -> dt_Membership
2006-06-08 15:26:29,005 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.SubSector.hbm.xml
2006-06-08 15:26:29,005 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,005 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.SubSector -> rt_SubSector
2006-06-08 15:26:29,005 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.PeerPosition.hbm.xml
2006-06-08 15:26:29,005 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,005 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.PeerPosition -> rt_PeerPositions
2006-06-08 15:26:29,005 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Sector.hbm.xml
2006-06-08 15:26:29,005 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,005 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.Sector -> rt_Sector
2006-06-08 15:26:29,021 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Geography.hbm.xml
2006-06-08 15:26:29,021 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,021 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.Geography -> rt_Geography
2006-06-08 15:26:29,021 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.News.hbm.xml
2006-06-08 15:26:29,021 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,021 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.News -> dt_News
2006-06-08 15:26:29,021 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Tax.hbm.xml
2006-06-08 15:26:29,021 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,037 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.Tax -> rt_Tax
2006-06-08 15:26:29,037 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Events.Events.hbm.xml
2006-06-08 15:26:29,037 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,037 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.Event -> dt_Events
2006-06-08 15:26:29,052 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.MembershipBilling.hbm.xml
2006-06-08 15:26:29,052 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,052 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.MembershipBilling -> dt_Membership_Billing
2006-06-08 15:26:29,052 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Events.OrderNameTag.hbm.xml
2006-06-08 15:26:29,052 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,068 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.OrderNameTag -> dt_OrderNameTags
2006-06-08 15:26:29,068 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.NewsType.hbm.xml
2006-06-08 15:26:29,068 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,068 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.NewsType -> rt_NewsType
2006-06-08 15:26:29,068 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Page.hbm.xml
2006-06-08 15:26:29,068 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,068 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.Page -> rt_Page
2006-06-08 15:26:29,068 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.ReferralSource.hbm.xml
2006-06-08 15:26:29,084 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,084 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.ReferralSource -> rt_ReferralSource
2006-06-08 15:26:29,084 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.PaymentMethod.hbm.xml
2006-06-08 15:26:29,084 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,084 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.PaymentMethod -> rt_PaymentMethod
2006-06-08 15:26:29,084 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.PageGroup.hbm.xml
2006-06-08 15:26:29,084 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,084 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.PageGroup -> rt_PageGroup
2006-06-08 15:26:29,084 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Events.EventGroup.hbm.xml
2006-06-08 15:26:29,084 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,084 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.EventGroup -> dt_EventGroup
2006-06-08 15:26:29,084 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Events.OrderComponent.hbm.xml
2006-06-08 15:26:29,099 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,099 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.OrderComponent -> dt_OrderComponents
2006-06-08 15:26:29,099 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Events.EventComponent.hbm.xml
2006-06-08 15:26:29,099 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,099 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.EventComponent -> dt_EventComponents
2006-06-08 15:26:29,099 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.PeerGroup.hbm.xml
2006-06-08 15:26:29,099 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,099 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.PeerGroup -> rt_PeerGroups
2006-06-08 15:26:29,099 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.NewsLetter.hbm.xml
2006-06-08 15:26:29,099 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,115 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.NewsLetter -> rt_NewsLetter
2006-06-08 15:26:29,115 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Contact.hbm.xml
2006-06-08 15:26:29,115 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,115 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.Contact -> dt_Contacts
2006-06-08 15:26:29,115 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Benefit.hbm.xml
2006-06-08 15:26:29,115 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,130 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.Benefit -> rt_Benefit
2006-06-08 15:26:29,130 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Events.EventImage.hbm.xml
2006-06-08 15:26:29,130 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,130 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.EventImage -> dt_EventImage
2006-06-08 15:26:29,130 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.ContactNote.hbm.xml
2006-06-08 15:26:29,130 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,130 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.ContactNote -> dt_ContactNote
2006-06-08 15:26:29,130 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Country.hbm.xml
2006-06-08 15:26:29,130 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,130 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.Country -> rt_Country
2006-06-08 15:26:29,130 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.MembershipDetails.hbm.xml
2006-06-08 15:26:29,146 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,146 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.MembershipDetail -> dt_Membership_Details
2006-06-08 15:26:29,146 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Events.EventDocument.hbm.xml
2006-06-08 15:26:29,146 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,146 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.EventDocument -> dt_EventDocument
2006-06-08 15:26:29,146 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Events.EventStatus.hbm.xml
2006-06-08 15:26:29,146 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,146 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.EventStatus -> rt_EventStatus
2006-06-08 15:26:29,146 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Order.hbm.xml
2006-06-08 15:26:29,162 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,162 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.Order -> dt_Orders
2006-06-08 15:26:29,162 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.ContactMethod.hbm.xml
2006-06-08 15:26:29,162 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,162 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.ContactMethod -> rt_ContactMethod
2006-06-08 15:26:29,162 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.PageOperation.hbm.xml
2006-06-08 15:26:29,162 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,162 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.PageOperation -> rt_PageOperation
2006-06-08 15:26:29,162 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.Operation.hbm.xml
2006-06-08 15:26:29,162 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,177 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.Operation -> rt_Operation
2006-06-08 15:26:29,177 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.NewsLetterContactLink.hbm.xml
2006-06-08 15:26:29,177 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,177 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.NewsLetterContactLink -> dt_NewsLetterContactLink
2006-06-08 15:26:29,177 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.NewsDocument.hbm.xml
2006-06-08 15:26:29,177 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,177 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.NewsDocument -> dt_NewsDocument
2006-06-08 15:26:29,177 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - Found mapping documents in assembly: ProjectModel.Core.PeerGroupMember.hbm.xml
2006-06-08 15:26:29,177 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,177 [3336] INFO  NHibernate.Cfg.Binder [(null)] - Mapping class: ProjectModel.Core.PeerGroupMember -> dt_PeerGroupMembers
2006-06-08 15:26:29,177 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - processing one-to-many association mappings
2006-06-08 15:26:29,177 [3336] INFO  NHibernate.Cfg.Binder [(null)] - mapping collection: ProjectModel.Core.Contact._OrderComponents -> dt_OrderComponents
2006-06-08 15:26:29,177 [3336] INFO  NHibernate.Cfg.Binder [(null)] - mapping collection: ProjectModel.Core.Contact._NewsLetters -> dt_NewsLetterContactLink
2006-06-08 15:26:29,177 [3336] INFO  NHibernate.Cfg.Binder [(null)] - mapping collection: ProjectModel.Core.Contact._PeerGroups -> dt_PeerGroupMembers
2006-06-08 15:26:29,177 [3336] INFO  NHibernate.Cfg.Binder [(null)] - mapping collection: ProjectModel.Core.Order._OrderComponents -> dt_OrderComponents
2006-06-08 15:26:29,177 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - processing one-to-one association property references
2006-06-08 15:26:29,177 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - processing foreign key constraints
2006-06-08 15:26:29,177 [3336] INFO  NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-06-08 15:26:29,177 [3336] INFO  NHibernate.Cfg.SettingsFactory [(null)] - use outer join fetching: True
2006-06-08 15:26:29,177 [3336] INFO  NHibernate.Connection.ConnectionProviderFactory [(null)] - Intitializing connection provider: NHibernate.Connection.DriverConnectionProvider
2006-06-08 15:26:29,193 [3336] INFO  NHibernate.Connection.ConnectionProvider [(null)] - Configuring ConnectionProvider
2006-06-08 15:26:29,193 [3336] INFO  NHibernate.Cfg.SettingsFactory [(null)] - Optimize cache for minimal puts: False
2006-06-08 15:26:29,193 [3336] INFO  NHibernate.Cfg.SettingsFactory [(null)] - Query language substitutions: {}
2006-06-08 15:26:29,193 [3336] INFO  NHibernate.Cfg.SettingsFactory [(null)] - cache provider: NHibernate.Cache.HashtableCacheProvider
2006-06-08 15:26:29,193 [3336] INFO  NHibernate.Cfg.Configuration [(null)] - instantiating and configuring caches
2006-06-08 15:26:29,193 [3336] INFO  NHibernate.Impl.SessionFactoryImpl [(null)] - building session factory
2006-06-08 15:26:49,052 [3336] INFO  NHibernate.Impl.SessionFactoryObjectFactory [(null)] - no name configured


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 08, 2006 4:48 pm 
Expert
Expert

Joined: Fri May 13, 2005 5:56 pm
Posts: 308
Location: Santa Barbara, California, USA
because you have configured log4net for INFO you are missing all of the DEBUG statements detailing the use of reflection when loading your object model. even so, with ~100 objects in my own app, it loads in 2 seconds on a 3.2GHz with 4GB RAM. one of the things that might be slowing you down is not using getters and setters for all of your properties. when you manually set the access parameter for a property/collection to something like access="field" or access="nosetter.camelcase" for immutable properties, the reflection optimizer cannot be run. i personally feel it is worth it to take the hit and maintain a clean object model/programming interface.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 09, 2006 10:20 am 
Beginner
Beginner

Joined: Tue May 17, 2005 7:25 pm
Posts: 43
Location: Somewhere, USA
You should look into the latest 1.2 Alpha1 build. It contains a lightweight version of the reflection optimizer than CAN work with access=field scenarios. It also has incredible startup time improvements.

More info: http://forum.hibernate.org/viewtopic.php?t=956966


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 09, 2006 10:29 am 
Newbie

Joined: Thu Mar 30, 2006 2:10 pm
Posts: 14
devonl wrote:
because you have configured log4net for INFO you are missing all of the DEBUG statements detailing the use of reflection when loading your object model. even so, with ~100 objects in my own app, it loads in 2 seconds on a 3.2GHz with 4GB RAM. one of the things that might be slowing you down is not using getters and setters for all of your properties. when you manually set the access parameter for a property/collection to something like access="field" or access="nosetter.camelcase" for immutable properties, the reflection optimizer cannot be run. i personally feel it is worth it to take the hit and maintain a clean object model/programming interface.


Thanks devonl,

Are you suggesting that I do use the access=field on my properties to try and leviate the crunch on load time?

I'm trying to wrap my head around whats taking it so long, so any further information would be great :)

Cheers,
Timothy Grant Vogelsang


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 09, 2006 11:26 am 
Expert
Expert

Joined: Fri May 13, 2005 5:56 pm
Posts: 308
Location: Santa Barbara, California, USA
Quote:
Are you suggesting that I do use the access=field on my properties to try and leviate the crunch on load time?


actually, i'm talking about the opposite. you can't use _any_ access modifiers, and instead provide getters and setters for all properties to avoid reflection optimization problems. the reflection optimizer in 1.0.2.0 is only effective when you have getters and setters for all properties and do not change the default access strategy. without the reflection optimizer, your load times will be longer.

but in my own opinion, this is not worth the reduction in startup time when you talk about cluttering the interface to each class. i mean, for sure an entity's ID field should be immutable, right? i wouldn't want a fellow developer to change the database ID of an object in code. it just doesn't make sense (yet).

-devon


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.