Skip to content

DATAMONGO-1194 - Improve DBRef resolution for collections. #377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

christophstrobl
Copy link
Member

We now bulk load collections of referenced objects as long as they are stored in the same collection. This reduces db roundtrips and network traffic.


Benchmark compare fetching list of dbrefs before and after this change:

        |    10    |   100   |   1000  |  // nr referenced Address objects
--------+----------+---------+---------+            
before  | 1317 /s  |  147 /s |   13 /s |  
after   | 3880 /s  |  776 /s |   38 /s |
class Customer {
    @Id String id;
    String name;
    @DBRef List<Address> list;
}

class Address {
    @Id String id;
    String city, street;
}

@mp911de mp911de changed the title Issue/datamongo 1194 DATAMONGO-1194 - Improve DBRef resolution for collections. Jul 13, 2016
We now bulk load collections of referenced objects as long as they are stored in the same collection. This reduces db roundtrips and network traffic.
We bulk load maps of referenced objects as long as they are stored in the same collection. This reduces db roundtrips and network traffic.
odrotbohm pushed a commit that referenced this pull request Jul 26, 2016
We now bulk load collections of referenced objects as long as they are stored in the same collection. This reduces database roundtrips and network traffic.

Original pull request: #377.
odrotbohm pushed a commit that referenced this pull request Jul 26, 2016
We bulk load maps of referenced objects as long as they are stored in the same collection. This reduces database roundtrips and network traffic.

Original pull request: #377.
odrotbohm added a commit that referenced this pull request Jul 26, 2016
Some missing JavaDoc and slight code polish.

Original pull request: #377.
@odrotbohm odrotbohm closed this Jul 26, 2016
@odrotbohm odrotbohm deleted the issue/DATAMONGO-1194 branch July 26, 2016 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants