-->
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.  [ 1 post ] 
Author Message
 Post subject: Support for dynamic tables
PostPosted: Wed Jan 02, 2008 8:36 am 
Newbie

Joined: Wed Jan 02, 2008 8:16 am
Posts: 3
We have a product which captures images and data of physical items when they are run through sorters. Each set of physical items is denoted a job. A dynamic table is created for each job and each date. There is a template table(ITEM_MASTER) which is taken as a reference to create the dynamic tables

For example lets say today is 02-Jan-2008 and there are 3 jobs which are run. Each job has 100000 items. So we create 3 tables i.e. item_01022007_1 to _3. The product also offers UI interfaces to process these items

Now if we want to use NHibernate, there are these issues which we face

1. We need to dynamically map the item table name in session factory based on what user selects.
2. Rebuild the session factory once mapping is changed.
3. Switch between various item tables throughout
4. Every time a session factory is rebuild, memory leak happens which can be monitored through any profiling tool

A solution to this can be a hash table of session factory per job, but number of jobs can be many so its not turning out to be an efficient solution.

I have the following queries

1. Does NHibernate support dynamic table name change without rebuilding the session factory? Please let me know if there is anything like that
2. Is the memory leak issue in rebuilding session factory fixed in the latest(1.2.1) release?

Thanks
Piyush


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

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.