Showing results for 
Search instead for 
Did you mean: 

Avoiding second match while returning total count and limited results

Node Clone

This has been asked before. I am just checking if we found a better way since this was posted:

1. I find it weird writing 2 MATCH queries, one for count and one for returning a subset of results (with SKIP/LIMIT). Is this still the recommended approach?

2. This SO post by @michael.hunger recommends running 2 MATCH queries over 1 query and collecting sliced results for skip/limit. Can someone please explain why running 2 queries is more efficient?