RE: Batch inserts

From: ςΡΒΙΓΛΙΚ εΧΗΕΞΙ (eryabitski..iasoft.ru)
Date: Thu Nov 19 2009 - 09:08:38 EST

  • Next message: Michael Gentry: "Re: Plans for the future (aka 3.1 roadmap)"

    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:andru..bjectstyle.org]
    Sent: Thursday, November 19, 2009 5:01 PM
    To: de..ayenne.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



    This archive was generated by hypermail 2.0.0 : Thu Nov 19 2009 - 09:09:45 EST