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
Post a Comment