Skip to content

Support batching DML operations #2217

Open
@gokhanabatay

Description

@gokhanabatay

Hi,
We have a Customer entity which has 100 properties/columns. At some business, some set of columns need to be updated with customer based custom data.
Think about that we have a fund batch and this batch create funds and updates Customer with latest fund amount "LastFundAmount".

Customer No  Last Fund Amount   Last Fund Date
100                   333                         20190916
101                   342                         20190916
102                   404.3                      20190916
103                   500                         20190916

We don't want to update Customer all properties which may create unnecessary index rebuild on db site, we need to update just changed data.

IQuery query = ISession.CreateQuery(Update Customer Set LastFundAmount = :LastFundAmount, LastFundDate = :LastFundDate where CustomerNo = :CustomerNo);

Also Batcher makes some database specific thinks for bulk insert/update/delete so, this hql needs to be send batcher at IStatementExecuter, but BasicExecuter or MultiTableExecuter does not supports batching.

Our application runs with 3 customer with 3 different database:Oracle, SQLServer, PostgresSql

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions