Caching Fluent NHibernate ISessionFactory -


we're building mobile application, , we're evaluating nhibernate + fluent use it. problem is, first time create isessionfactory, takes full 2 minutes. though table structure simple (3 tables).

each call after extremely fast.

what i'd either cache isessionfactory between application restarts, or somehow speed creation of in first place.

any ideas on if it's possible cache? reading, there's not speeding up.

you can serialize , save configuration , load second time around reduce time takes create. tho if make changes need blow away old config , serialize new version, otherwise loading old configuration.

i can't remember code tho, try dig example.

edit: http://vimeo.com/16225792

in video @ 24 minutes in ayende discusses configuration serialization.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -