From: Eric W. (JIRA) <no...@at...> - 2006-06-06 01:42:45
|
Add support for batch operations in StatelessSession ---------------------------------------------------- Key: HHH-1815 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1815 Project: Hibernate3 Type: Improvement Components: core Environment: all Reporter: Eric Williams Priority: Minor The principal use cases for StatelessSession seems to be in batch-oriented processing. However, there is no support for batch inserts or updates of persistent entities in the StatelessSession interface. This severely handicaps its usefulness for batch data loading. -- 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/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Max R. A. (JIRA) <no...@at...> - 2006-06-06 05:32:21
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1815?page=all ] Max Rydahl Andersen closed HHH-1815: ------------------------------------ Resolution: Rejected stateless.createQuery("bla bla").executeUpdate() > Add support for batch operations in StatelessSession > ---------------------------------------------------- > > Key: HHH-1815 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1815 > Project: Hibernate3 > Type: Improvement > Components: core > Environment: all > Reporter: Eric Williams > Priority: Minor > > > The principal use cases for StatelessSession seems to be in batch-oriented processing. However, there is no support for batch inserts or updates of persistent entities in the StatelessSession interface. This severely handicaps its usefulness for batch data loading. -- 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/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Eric W. (JIRA) <no...@at...> - 2006-06-06 18:32:30
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1815?page=comments#action_23278 ] Eric Williams commented on HHH-1815: ------------------------------------ I'm not sure I understand the use of an update query. If you're referring to the use of INSERT INTO ... SELECT FROM, that's not what I'm trying to get at. My essential problem with StatelessSession is that I can't batch-insert objects that I have in memory. Currently, I can only insert(object), not insert(array of objects). The enhancement request was to provide capability to insert(array of objects), using appropriate JDBC batching. Is this somehow accomplishable with Query.executeUpdate()? > Add support for batch operations in StatelessSession > ---------------------------------------------------- > > Key: HHH-1815 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1815 > Project: Hibernate3 > Type: Improvement > Components: core > Environment: all > Reporter: Eric Williams > Priority: Minor > > > The principal use cases for StatelessSession seems to be in batch-oriented processing. However, there is no support for batch inserts or updates of persistent entities in the StatelessSession interface. This severely handicaps its usefulness for batch data loading. -- 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/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Steve E. (JIRA) <no...@at...> - 2006-06-06 18:40:31
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1815?page=all ] Steve Ebersole reopened HHH-1815: --------------------------------- Assign To: Steve Ebersole > Add support for batch operations in StatelessSession > ---------------------------------------------------- > > Key: HHH-1815 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1815 > Project: Hibernate3 > Type: Improvement > Components: core > Environment: all > Reporter: Eric Williams > Assignee: Steve Ebersole > Priority: Minor > > > The principal use cases for StatelessSession seems to be in batch-oriented processing. However, there is no support for batch inserts or updates of persistent entities in the StatelessSession interface. This severely handicaps its usefulness for batch data loading. -- 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/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Steve E. (JIRA) <no...@at...> - 2006-06-06 18:40:31
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1815?page=comments#action_23280 ] Steve Ebersole commented on HHH-1815: ------------------------------------- Yes, I have been giving this thought already. It is really needed for StatelessSession to be as useful as it could be in terms of performance. Unfortunately I am bogged down in JPA stuff right now. Please have a look and feel free to submit a patch in the meantime. > Add support for batch operations in StatelessSession > ---------------------------------------------------- > > Key: HHH-1815 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1815 > Project: Hibernate3 > Type: Improvement > Components: core > Environment: all > Reporter: Eric Williams > Priority: Minor > > > The principal use cases for StatelessSession seems to be in batch-oriented processing. However, there is no support for batch inserts or updates of persistent entities in the StatelessSession interface. This severely handicaps its usefulness for batch data loading. -- 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/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Emmanuel B. (JIRA) <no...@at...> - 2006-06-06 19:22:26
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1815?page=comments#action_23283 ] Emmanuel Bernard commented on HHH-1815: --------------------------------------- No, this should be taken care of transparently by Hibernate. > Add support for batch operations in StatelessSession > ---------------------------------------------------- > > Key: HHH-1815 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1815 > Project: Hibernate3 > Type: Improvement > Components: core > Environment: all > Reporter: Eric Williams > Assignee: Steve Ebersole > Priority: Minor > > > The principal use cases for StatelessSession seems to be in batch-oriented processing. However, there is no support for batch inserts or updates of persistent entities in the StatelessSession interface. This severely handicaps its usefulness for batch data loading. -- 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/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Emmanuel B. (JIRA) <no...@at...> - 2006-06-06 19:54:28
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1815?page=comments#action_23284 ] Emmanuel Bernard commented on HHH-1815: --------------------------------------- To be more specific, Hibernate seems to handle transparently batch operations already since it uses JDBC batch update underneath. Did you try it? It is defeated if you use a generator that requires an intermetdiate SQL operation inbetween (like sequence). But for batch operation, you should consider hilo or seqhilo anyway. > Add support for batch operations in StatelessSession > ---------------------------------------------------- > > Key: HHH-1815 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1815 > Project: Hibernate3 > Type: Improvement > Components: core > Environment: all > Reporter: Eric Williams > Assignee: Steve Ebersole > Priority: Minor > > > The principal use cases for StatelessSession seems to be in batch-oriented processing. However, there is no support for batch inserts or updates of persistent entities in the StatelessSession interface. This severely handicaps its usefulness for batch data loading. -- 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/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |