RavenDB 5.3 New FeaturesJSON Patch

time to read 1 min | 150 words

JSON Patch is a feature that allows the frontend to send a set of changes on documents. If you are working with complex documents, that can result in a significant reduction in bandwidth. There are many scenarios where the client can modify a document on the browser, then produce the JSON Patch to make the server match the changes.

In RavenDB 5.3, we added direct support for implementing JSON Patch inside of RavenDB. The frontend code can forward the patch operations directly to RavenDB, where they will be executed by the database. Concurrent patches on the same document aren’t going to contend with one another and will be processed correctly. For example, in this post I’m using patch scripts to modify a document. I can do the same using JSON patch as well.

Here is how you can use the new ability:

Small improvement, but can make some scenarios much easier.

More posts in "RavenDB 5.3 New Features" series:

  1. (26 Nov 2021) Revisions includes
  2. (25 Nov 2021) JSON Patch
  3. (24 Nov 2021) Studio & Query improvements
  4. (23 Nov 2021) TCP Compression
  5. (18 Nov 2021) Experimental PostgreSQL wire protocol
  6. (17 Nov 2021) Elasticsearch ETL
  7. (15 Nov 2021) Incremental time series & implementing lambda based accounting
  8. (12 Nov 2021) Incremental time series
  9. (11 Nov 2021) Concurrent Subscriptions & Serial operations
  10. (10 Nov 2021) Concurrent subscriptions