cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Рябицкий Евгений <eryabits...@diasoft.ru>
Subject RE: Batch inserts
Date Thu, 19 Nov 2009 14:08:38 GMT
Yeah. But it's using DBEntity inside to get Table MetaData.
So you should fill up map.xml before. It's painfull...
Idea is to add feature like loading for this DBEntity (as it's done in reverse engineering).
+ some caching for this DBEntitys.
So user can pass only: TableName, DataMap (even empty), and DataRows.
It will be much easy.

 

-----Original Message-----
From: Andrus Adamchik [mailto:andrus@objectstyle.org] 
Sent: Thursday, November 19, 2009 5:01 PM
To: dev@cayenne.apache.org
Subject: Batch inserts


On Nov 19, 2009, at 3:47 PM, Рябицкий Евгений wrote:

> One more thing:
> I didn't find nice solution for Inserting multiple DataRows in Table.
> So I have idea to add BatchInsert operations for API.

What about InsertBatchQuery? It is used internally by Cayenne and can  
be used by the applications as well.

Andrus

Mime
View raw message