You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* store: Add table_stats materialzed view
Signed-off-by: Maksim Dimitrov <dimitrov.maksim@gmail.com>
* graph, store: Add experimental job to automatically set account-like flag on eligible tables
Signed-off-by: Maksim Dimitrov <dimitrov.maksim@gmail.com>
* docs: Update env vars documentation
Signed-off-by: Maksim Dimitrov <dimitrov.maksim@gmail.com>
* store: Fixes and refactor error handling
Signed-off-by: Maksim Dimitrov <dimitrov.maksim@gmail.com>
* store: Rename materialized view to avoid name clash
Signed-off-by: Maksim Dimitrov <dimitrov.maksim@gmail.com>
---------
Signed-off-by: Maksim Dimitrov <dimitrov.maksim@gmail.com>
Copy file name to clipboardExpand all lines: docs/environment-variables.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -287,3 +287,10 @@ those.
287
287
-`GRAPH_ENABLE_SQL_QUERIES`: Enable the experimental [SQL query
288
288
interface](implementation/sql-interface.md).
289
289
(default: false)
290
+
-`GRAPH_STORE_ACCOUNT_LIKE_SCAN_INTERVAL_HOURS`: If set, enables an experimental job that
291
+
periodically scans for entity tables that may benefit from an [account-like optimization](https://thegraph.com/docs/en/indexing/tooling/graph-node/#account-like-optimisation) and marks them with an
292
+
account-like flag. The value is the interval in hours at which the job
293
+
should run. The job reads data from the `info.table_stats` materialized view, which refreshes every six hours. Expects an integer value, e.g., 24. Requires also setting
294
+
`GRAPH_STORE_ACCOUNT_LIKE_MIN_VERSIONS_COUNT` and `GRAPH_STORE_ACCOUNT_LIKE_MAX_UNIQUE_RATIO`.
295
+
-`GRAPH_STORE_ACCOUNT_LIKE_MIN_VERSIONS_COUNT`: Sets the minimum total number of versions a table must have to be considered for account-like flagging. Expects a positive integer value. No default value.
296
+
-`GRAPH_STORE_ACCOUNT_LIKE_MAX_UNIQUE_RATIO`: Sets the maximum unique entities to version ratio (e.g., 0.01 ≈ 1:100 entity-to-version ratio).
0 commit comments