Closed smivz closed 1 year ago
I am seeing the same thing in version 2.7.0.
Fixed by #157, release 2.8.0 and https://github.com/neo4j-php/neo4j-php-client/commit/f8b683f19d5fb3f08024095f53d4ba6a029d7af7
Will be released later today in version 2.8.1
Duplicate results returned when no. of results is more than fetch size. This problem seems to be related to SessionConfiguration::DEFAULT_FETCH_SIZE which by default is 1000. However, when you are retrieving more than 1000 results, it will just return the the first 1000 results multiple times e.g. in the example below there are 4000 results to be fetched but what we got was the first 1000 results four times
To Reproduce
Expected behavior $results = $client->run('MATCH (user:User) RETURN ID(user) AS id');
The above, should not return duplicates and should instead return all results fetched by the query.
Alternatively, only the number of results specified in the fetch limit should be returned. However, I would suggest that the default fetch limit should be unliimited and the developer can set a fetch limit if they wish
Desktop (please complete the following information):