mirror of
https://github.com/google/nomulus
synced 2026-01-07 05:56:49 +00:00
Resolve RDAP TODO without action
There was a TODO to consider making RDAP queries look up domains by foreign key rather than directly to the domain itself. But since the TLD is a possible search filter, it makes more sense to stick with direct lookup, so we can take advantage of the index on TLD. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=169240318
This commit is contained in:
@@ -210,7 +210,8 @@ public class RdapDomainSearchAction extends RdapActionBase {
|
||||
if (partialStringQuery.getSuffix() != null) {
|
||||
query = query.filter("tld", partialStringQuery.getSuffix());
|
||||
}
|
||||
// TODO(mountford): Investigate fetching by foreign key instead of the domain itself.
|
||||
// Query the domains directly, rather than the foreign keys, because then we have an index on
|
||||
// TLD if we need it.
|
||||
for (DomainResource domain :
|
||||
query.limit(RESULT_SET_SIZE_SCALING_FACTOR * rdapResultSetMaxSize)) {
|
||||
if (EppResourceUtils.isActive(domain, now)) {
|
||||
|
||||
Reference in New Issue
Block a user