google-nomulus/java/google/registry/flows/domain
mcilwain cb80a0df1e Batch contact/host loads when checking pending delete
I'm actually surprised that we had this in our code, as it seems like a huge
oversight, but we were individually loading each and every referenced contact
and host during domain/application create/update/allocate flows. Loading them
all as a single batch should reduce round trips to Datastore by a good deal,
thus improving performance.

We aren't giving up any transactional consistency in doing so and the only
potential downside I can think of is that we're always loading all contacts/
hosts instead of only some of them, in the rare case that one of the earlier
contacts/hosts is actually in pending delete (which allowed short-circuiting).
However, the gains from only making one round-trip should swamp the potential
losses in occasionally loading more data than is strictly necessary.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=186656118
2018-03-06 18:50:04 -05:00
..
token Add DateTime as extensibility param for allocation token logic 2018-02-20 15:27:42 -05:00
DomainAllocateFlow.java Make EppInput.getSingleExtension() return Optional, not @Nullable 2018-01-19 14:40:10 -05:00
DomainApplicationCreateFlow.java Add the ability to require premium fee acking for a registrar 2018-02-01 22:07:11 -05:00
DomainApplicationDeleteFlow.java Make EppInput.getSingleExtension() return Optional, not @Nullable 2018-01-19 14:40:10 -05:00
DomainApplicationInfoFlow.java Make EppInput.getSingleExtension() return Optional, not @Nullable 2018-01-19 14:40:10 -05:00
DomainApplicationUpdateFlow.java Add the ability to require premium fee acking for a registrar 2018-02-01 22:07:11 -05:00
DomainCheckFlow.java Add the START_DATE_SUNRISE phase 2018-02-20 15:45:27 -05:00
DomainClaimsCheckFlow.java Make EppInput.getSingleExtension() return Optional, not @Nullable 2018-01-19 14:40:10 -05:00
DomainCreateFlow.java Validate individual fee types 2018-03-06 18:48:39 -05:00
DomainDeleteFlow.java Add extensibility framework for allocation tokens 2018-02-01 21:54:29 -05:00
DomainFlowTmchUtils.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DomainFlowUtils.java Batch contact/host loads when checking pending delete 2018-03-06 18:50:04 -05:00
DomainInfoFlow.java Add extensibility framework for allocation tokens 2018-02-01 21:54:29 -05:00
DomainPricingLogic.java Add test to confirm fee validation when creating/checking a premium domain during EAP 2018-02-20 15:26:13 -05:00
DomainRenewFlow.java Add the ability to require premium fee acking for a registrar 2018-02-01 22:07:11 -05:00
DomainRestoreRequestFlow.java Add the ability to require premium fee acking for a registrar 2018-02-01 22:07:11 -05:00
DomainTransferApproveFlow.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
DomainTransferCancelFlow.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
DomainTransferQueryFlow.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
DomainTransferRejectFlow.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
DomainTransferRequestFlow.java Add the ability to require premium fee acking for a registrar 2018-02-01 22:07:11 -05:00
DomainTransferUtils.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
DomainUpdateFlow.java Add the ability to require premium fee acking for a registrar 2018-02-01 22:07:11 -05:00
FeesAndCredits.java Replace Stream.concat with Streams.concat 2017-12-27 11:35:47 -05:00