hi all,
i am using NHibernate 1.0.2 , but it's BuildSessionFactory method takes about 30-40 second to complete it while NHibernate 1.0.0 just tooks about 2-3 seconds.
Code:
cfg = new Configuration();
cfg.SetProperty("hibernate.dialect", "NHibernate.Dialect.SQLiteDialect");
cfg.SetProperty("hibernate.connection.provider", "NHibernate.Connection.DriverConnectionProvider");
cfg.SetProperty("hibernate.connection.driver_class", "NHibernate.Driver.SQLiteDriver");
cfg.SetProperty("hibernate.connection.connection_string", @"Data Source=" + GetDatabaseName() + ";Version=3");
cfg.SetProperty("hibernate.query.substitutions", "true=1;false=0");
try
{
cfg.AddAssembly("WindowsApplication1");
factory = cfg.BuildSessionFactory();
}
is there any configuration needed to make it faster ??