summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/schema
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahooinc.com>2022-08-24 15:17:08 +0000
committerGeir Storli <geirst@yahooinc.com>2022-08-24 15:17:08 +0000
commitd546929a5e4dabaac53717d45dd2bb5c818429a4 (patch)
tree125dc5075f93399b6b46560834d6b7c9745d4095 /config-model/src/main/java/com/yahoo/schema
parent26d0b997cc573bac2a1d7eda7a2494449452e121 (diff)
Add 'paged' support for reference attribute fields.
The memory usage of a reference attribute can be calculated as follows: num_child_docs * 8 + num_parent_docs * 24 + num_child_docs_where_parent_reference_is_set * 4. When using 'paged' the btrees used in the reverse mapping from parent lid to child lids are still memory allocated. This is the num_child_docs_where_parent_reference_is_set part of the equation above.
Diffstat (limited to 'config-model/src/main/java/com/yahoo/schema')
-rw-r--r--config-model/src/main/java/com/yahoo/schema/processing/PagedAttributeValidator.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/config-model/src/main/java/com/yahoo/schema/processing/PagedAttributeValidator.java b/config-model/src/main/java/com/yahoo/schema/processing/PagedAttributeValidator.java
index 34bb6e1db2e..793505acd01 100644
--- a/config-model/src/main/java/com/yahoo/schema/processing/PagedAttributeValidator.java
+++ b/config-model/src/main/java/com/yahoo/schema/processing/PagedAttributeValidator.java
@@ -48,7 +48,6 @@ public class PagedAttributeValidator extends Processor {
private boolean isSupportedType(Attribute attribute) {
var type = attribute.getType();
return (type != Attribute.Type.PREDICATE) &&
- (type != Attribute.Type.REFERENCE) &&
(isSupportedTensorType(attribute.tensorType()));
}