dorofeev22 / caregiving

CRM of caregiving
The Unlicense
0 stars 1 forks source link

Insert all rows in a single statement #33

Closed dorofeev22 closed 6 years ago

dorofeev22 commented 6 years ago

https://stackoverflow.com/questions/6687422/hibernate-batch-size-confusion?answertab=votes#tab-top https://stackoverflow.com/questions/19175234/how-to-insert-all-rows-in-a-single-statement

POST /products

[ { "number": "100", "name": "dfgdghfhfgjfg" }, { "number": "101", "name": "dfgdghfhfgjfg" }, { "number": "102", "name": "dfgdghfhfgjfg" }, { "number": "103", "name": "dfgdghfhfgjfg" }, { "number": "104", "name": "dfgdghfhfgjfg" } ]

ForNeVeR commented 6 years ago

Good materials on the matter:

ForNeVeR commented 6 years ago

For logging real PostgreSQL queries, see https://stackoverflow.com/a/722236