From c1ba7a97a86725019793741e3864f4f7325074ec Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Tue, 29 Jul 2025 13:29:40 +0200 Subject: [PATCH] graph/db: increase default page size --- graph/db/sql_store.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/graph/db/sql_store.go b/graph/db/sql_store.go index d7f93e65d..f996bfbfa 100644 --- a/graph/db/sql_store.go +++ b/graph/db/sql_store.go @@ -33,7 +33,10 @@ import ( // pageSize is the limit for the number of records that can be returned // in a paginated query. This can be tuned after some benchmarks. -const pageSize = 2000 +// +// TODO(elle): make this configurable & have different defaults for SQLite and +// Postgres. +const pageSize = 10000 // ProtocolVersion is an enum that defines the gossip protocol version of a // message.