google-nomulus/javatests/google/registry/flows/domain
mcilwain 49ac4e3e69 Improve Datastore efficiency of duplicate contact messages
I should have caught this in the review, but [] is loading *ALL*
contacts individually from Datastore on every domain update. This will add a
large number of Datastore round trips and thus significantly reduce update
performance.

This CL changes the behavior to *ONLY* load contacts when there is a duplicate
(which is needed to determine the contact's display name to generate the error
message), and loads all of them in a single batch rather than individually.

This also makes some minor changes around domain getters returning empty sets
instead of null.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=233128140
2019-02-11 11:22:34 -05:00
..
testdata Add detailed log when DuplicateContactForRoleException is thrown 2019-02-08 11:20:21 -05:00
token Move the AllocationToken entity to the token subpackage 2018-07-14 01:37:03 -04:00
DomainCheckFlowTest.java Handle sunrise reservations properly during sunrise TLDs 2019-02-06 18:06:21 -05:00
DomainClaimsCheckFlowTest.java Merge DomainResource into DomainBase 2019-01-28 15:57:10 -05:00
DomainCreateFlowTest.java Merge DomainResource into DomainBase 2019-01-28 15:57:10 -05:00
DomainDeleteFlowTest.java Fix some issues caught by IntelliJ static code analysis 2019-01-28 16:08:24 -05:00
DomainInfoFlowTest.java Merge DomainResource into DomainBase 2019-01-28 15:57:10 -05:00
DomainRenewFlowTest.java Merge DomainResource into DomainBase 2019-01-28 15:57:10 -05:00
DomainRestoreRequestFlowTest.java Fix some issues caught by IntelliJ static code analysis 2019-01-28 16:08:24 -05:00
DomainTransferApproveFlowTest.java Merge DomainResource into DomainBase 2019-01-28 15:57:10 -05:00
DomainTransferCancelFlowTest.java Merge DomainResource into DomainBase 2019-01-28 15:57:10 -05:00
DomainTransferFlowTestCase.java Merge DomainResource into DomainBase 2019-01-28 15:57:10 -05:00
DomainTransferQueryFlowTest.java Merge DomainResource into DomainBase 2019-01-28 15:57:10 -05:00
DomainTransferRejectFlowTest.java Merge DomainResource into DomainBase 2019-01-28 15:57:10 -05:00
DomainTransferRequestFlowTest.java Merge DomainResource into DomainBase 2019-01-28 15:57:10 -05:00
DomainUpdateFlowTest.java Improve Datastore efficiency of duplicate contact messages 2019-02-11 11:22:34 -05:00