bchavez / RethinkDb.Driver

:headphones: A NoSQL C#/.NET RethinkDB database driver with 100% ReQL API coverage.
http://rethinkdb.com/api/java
Other
383 stars 134 forks source link

Update several documents in one transaction #117

Closed iSotelo closed 7 years ago

iSotelo commented 7 years ago

Hello.

How I can update several documents in one transaction using update(). I Need update one list to 3000 records (previously mapped in MyClassMapper) only using update o replace() in one transacction.

Example:

/// My classs mapper is my model List<MyClassMapper> recordsUpdate = new List<MyClassMapper>();

/// TODO: Fill my list recordsUpdate using foreach or while

/// Vars: DBLocal, Table, Connection is ready and instance R.Db(DBLocal).Table(table).Update(recordsUpdate).Run(Connection);

My problem is that not change the records, but if i using update() method in one record or one for one then yes update record, but this take a lot of time.

Thanks

Versions: Windows 7 Ultimate 64 bit Net Framework 4.5 Rethinkdb driver version 2.3.19

bchavez commented 7 years ago

Hi @iSotelo , I'd be happy to answer your question in the Slack channel. You can tag me @bchavez in Slack.

Respectfully, it's very important for me to avoid using GitHub issues for help requests.

Many thanks, Brian

:walking_woman: :walking_man: Missing Persons - Walking in L.A.