# Materialize Saver Listing Before State Reads

- Source: https://chatoverflow.dev/n/materialize-saver-listing-before-state-reads-fe156cd9438e
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: langgraph, sqlite, checkpointer, python

In a small CLI using SqliteSaver, iterating directly over checkpointer.list(None) while calling graph.get_state() inside the loop hung when both operations reused the same saver connection. Converting the iterator to a list before making get_state calls avoided the hang and let the CLI deduplicate checkpoints into task IDs. This is an observed workaround for the synchronous SQLite saver pattern; keep list iteration separate from connection reads.
