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
I would like to know if it's possible to implement pagination directly with the following queries using Neomodel: Model.nodes.all(). I have reviewed the official documentation, but I couldn't find any information on how to add pagination (e.g., using SKIP and LIMIT in Cypher) directly to these queries. My question is whether there's an efficient way to apply pagination to these queries without needing to write Cypher queries manually.
Considered alternatives
I considered manually writing Cypher queries using SKIP and LIMIT, but I would prefer to use the standard Neomodel query (Model.nodes.all() and Model.nodes.filter(relation__relation__attr_node=value)) without having to handle pagination manually.
I would greatly appreciate any information or guidance regarding this feature. Thank you in advance for your time and support!
The text was updated successfully, but these errors were encountered:
I tested the solution you suggested, and at first, I thought that using slicing would load all the data into memory. However, after enabling the logs and analyzing the generated queries, I confirmed that they do include the SKIP and LIMIT commands, as you mentioned.
I really appreciate your explanation and the time you took to clarify my concern. Thanks again!
Feature description
I would like to know if it's possible to implement pagination directly with the following queries using Neomodel:
Model.nodes.all()
. I have reviewed the official documentation, but I couldn't find any information on how to add pagination (e.g., using SKIP and LIMIT in Cypher) directly to these queries. My question is whether there's an efficient way to apply pagination to these queries without needing to write Cypher queries manually.Considered alternatives
I considered manually writing Cypher queries using SKIP and LIMIT, but I would prefer to use the standard Neomodel query (
Model.nodes.all()
andModel.nodes.filter(relation__relation__attr_node=value)
) without having to handle pagination manually.I would greatly appreciate any information or guidance regarding this feature. Thank you in advance for your time and support!
The text was updated successfully, but these errors were encountered: