From: <leg...@at...> - 2003-06-21 03:12:55
|
The following comment has been added to this issue: Author: Gavin King Created: Fri, 20 Jun 2003 10:11 PM Body: I like this idea. I don't think its hard to make Configuration be serializa= ble. However, note that there is additional work done in buildSessionFactory(), = so you could not completely defray the startup cost. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?= key=3DHB-147 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-147 Summary: Caching of Configuration Type: Improvement Status: Unassigned Priority: Minor Project: Hibernate2 Components:=20 core Assignee:=20 Reporter: Thorsten Sch=C3=A4fer Created: Fri, 20 Jun 2003 8:12 AM Updated: Fri, 20 Jun 2003 8:12 AM Environment: Client applications Description: If you use hibernate in a client application, you first have to create a co= nfiguration. This can take a lot of time (I have four classes and it can ta= ke up to 30 seconds), because XML processing is quite slow. For small appli= cations this could be too much. To solve this problem it would be fine if the created configuration is auto= matically saved to a file. For the next start, the configuration should loo= k if a persisted configuration exist and load this instead of parsing the X= ML mappings again. If such a pre-initialized configuration does not exist, = the normal approach is taken. Thorsten --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |