kitar / laravel-dynamodb

A DynamoDB based Eloquent model and Query builder for Laravel.
MIT License
179 stars 27 forks source link

Add batch write item #25

Closed negoziator closed 1 year ago

negoziator commented 1 year ago

---> DRAFT PULL REQUEST <---

Description

Starting to work on a implentation for batch writing items. This is to gain a lot of performance when inserting many items.

Let's see if this can be done in a clean way.

Please feel free to join in 😄

Notes:

Documentation https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html

kitar commented 1 year ago

Looks amazing! Thank you for start working on this. I’ll try your code as well.

negoziator commented 1 year ago

Thanks @kitar !

I'll try it out in a real project in the coming days.

negoziator commented 1 year ago

Still not forgotten. I'm just testing it out on our own systems. It will take some time unfortunately - and i'm going on a week's vacation now :)

However .. i think it would be nice to also implement BatchGetItem as well .

kitar commented 1 year ago

@negoziator No need to rush! Enjoy your vacation and take it at a comfortable pace :) (BTW, I won't have enough time at this time either😅)

negoziator commented 1 year ago

@kitar I will have to abandon this PR - as i can't make it work in a nice way with the QueryBuilder class.

kitar commented 1 year ago

@negoziator No problem! Thank you for letting me know and for your suggestion. It was helpful for future development :)