Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 22, 2020. It is now read-only.
This repository was archived by the owner on Feb 22, 2020. It is now read-only.

Support for updating individual properties #23

Copy link
Copy link
@roofrazor

Description

@roofrazor
Issue body actions

Hey bud, I've been using MongoRepository for a long time and I LOVE it! It simplifies coding for MongoDB in .NET significantly.

However, there is a fundamental problem with it that greatly hinders scalability. See, the only way you handle updates is by updating the entire document in the database instead of only the properties that have changed. This is extremely wasteful because it uses more bandwidth than necessary to push an entire object, but it also forces the database to re-index the entire collection because the object has been replaced instead of updated.

Do you think this is something you can implement in MongoRepository? I would really appreciate it if you could. Maybe you can have something that tracks changes made to the models, and when "Update()" is called, it will only update the changed properties instead of replacing the entire object.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.