optimize subgraph state lookups

This commit is contained in:
vbarda
2024-08-22 20:35:08 -04:00
parent 9f6e57d2a7
commit 4162be8119
4 changed files with 116 additions and 115 deletions
@@ -70,6 +70,9 @@ def search_where(
if config is not None:
wheres.append("thread_id = ?")
param_values.append(config["configurable"]["thread_id"])
if checkpoint_id := get_checkpoint_id(config):
wheres.append("checkpoint_id = ?")
param_values.append(checkpoint_id)
# construct predicate for metadata filter
if filter: