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
EDIT:
Paging does indeed work in SDN. I implemented it for the project/{id}/commits endpoint.
This is what the query looks like:
@Query(
value = "MATCH (p)-[:CONTAINS_COMMIT]->(c) WHERE ID(p) = {0} RETURN c ORDER BY c.timestamp DESC",
countQuery = "MATCH (p:ProjectEntity)-[:CONTAINS_COMMIT]->(c) WHERE ID(p) = {0} RETURN COUNT(c)")
@NonNullPage<CommitEntity> findByProjectIdAndTimestampDescPaged(@NonNullLongprojectId, @NonNullPageablepage);
I also implemented paging in the front-end and configured the paginators to load new pages on demand.
However, clicking through the pages feels very sluggish and unresponsive. Considering we can load a lot of commits without pagination (maximum I've tried was 66655 commits) in a very short time and still browse them comfortably, I think we should discuss in what cases we need to page data and whether we even should.
Go through the HTTP endpoints and identify those that need paging.
Implement paging for these endpoints (see tutorial at https://reflectoring.io/spring-boot-paging/)
The text was updated successfully, but these errors were encountered: