Skip to content

Commit

Permalink
change query.page_size range to (1, 80w)
Browse files Browse the repository at this point in the history
Change-Id: I0284b6ea7edd33898c54b5bf223ab069a229245d
  • Loading branch information
zhoney committed Apr 3, 2019
1 parent 4546c6b commit 48e24cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Objects;
import java.util.Set;

import com.baidu.hugegraph.backend.BackendException;
Expand All @@ -31,7 +32,6 @@
import com.baidu.hugegraph.type.HugeType;
import com.baidu.hugegraph.type.define.HugeKeys;
import com.baidu.hugegraph.util.E;
import com.google.common.base.Objects;
import com.google.common.collect.ImmutableSet;

public class Query implements Cloneable {
Expand Down Expand Up @@ -260,8 +260,7 @@ public boolean equals(Object object) {
this.orders.equals(other.orders) &&
this.offset == other.offset &&
this.limit == other.limit &&
((this.page == null && other.page == null) ||
this.page.equals(other.page)) &&
Objects.equals(this.page, other.page) &&
this.ids().equals(other.ids()) &&
this.conditions().equals(other.conditions());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

package com.baidu.hugegraph.config;

import com.baidu.hugegraph.backend.query.Query;

import static com.baidu.hugegraph.backend.tx.GraphTransaction.COMMIT_BATCH;
import static com.baidu.hugegraph.config.OptionChecker.disallowEmpty;
import static com.baidu.hugegraph.config.OptionChecker.rangeInt;
Expand Down Expand Up @@ -211,7 +213,7 @@ public static synchronized CoreOptions instance() {
new ConfigOption<>(
"query.page_size",
"The size of each page when query using paging.",
rangeInt(0, 10000),
rangeInt(1, (int) Query.DEFAULT_CAPACITY),
500
);

Expand Down

0 comments on commit 48e24cf

Please sign in to comment.