neo4j-contrib / neomodel

An Object Graph Mapper (OGM) for the Neo4j graph database.
https://neomodel.readthedocs.io
MIT License
936 stars 231 forks source link

Make async iterator fully async #804

Open mariusconjeaud opened 3 months ago

mariusconjeaud commented 3 months ago

When fetching all nodes for a given label with async for node in Coffee.nodes, all results get fetched and loaded into memory first, and then iterated over.

It would be better to have this only fetching results in a true asyncronous fashion, in a paginated way.

Open for ideas / pointers / PRs !