Here is a small sample from my query.log
. It looks like the queries are spending a lot of time in the planning phase. But also the time taken apart from planning seems to be quite high. I would expect these queries to take not more than a few ms:
2019-12-04 20:56:17.368+0000 INFO 1556 ms: (planning: 1095, waiting: 0) - 6 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.44.126:51654 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:ConsumerInternalId{consumer_internal_id: {consumer_internal_id},client_id: {client_id}}) where id(ps)=5343875 return id(n) as node_id - {}
2019-12-04 20:56:17.564+0000 INFO 1667 ms: (planning: 1282, waiting: 0) - 6 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.85.52:42346 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:ConsumerInternalId{consumer_internal_id: {consumer_internal_id},client_id: {client_id}}) where id(ps)=5343741 return id(n) as node_id - {}
2019-12-04 20:56:17.952+0000 INFO 1552 ms: (planning: 1246, waiting: 0) - 6 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.44.126:51648 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:ConsumerInternalId{consumer_internal_id: {consumer_internal_id},client_id: {client_id}}) where id(ps)=5343896 return id(n) as node_id - {}
2019-12-04 20:56:17.967+0000 INFO 1686 ms: (planning: 1319, waiting: 0) - 6 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.85.52:42326 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:ConsumerInternalId{consumer_internal_id: {consumer_internal_id},client_id: {client_id}}) where id(ps)=5343838 return id(n) as node_id - {}
2019-12-04 20:56:17.967+0000 INFO 1777 ms: (planning: 1385, waiting: 0) - 32 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.85.52:42334 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:IP{ip_address: {ip_address}}) where id(ps)=5343939 return id(n) as node_id - {}
2019-12-04 20:56:18.067+0000 INFO 1857 ms: (planning: 1467, waiting: 0) - 6 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.44.126:51650 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:ConsumerInternalId{consumer_internal_id: {consumer_internal_id},client_id: {client_id}}) where id(ps)=5343921 return id(n) as node_id - {}
2019-12-04 20:56:18.091+0000 INFO 1393 ms: (planning: 1085, waiting: 0) - 6 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.85.52:42348 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:ConsumerInternalId{consumer_internal_id: {consumer_internal_id},client_id: {client_id}}) where id(ps)=5344009 return id(n) as node_id - {}
2019-12-04 20:56:18.094+0000 INFO 1231 ms: (planning: 953, waiting: 0) - 6 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.44.126:51662 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:ConsumerInternalId{consumer_internal_id: {consumer_internal_id},client_id: {client_id}}) where id(ps)=5343862 return id(n) as node_id - {}
2019-12-04 20:56:18.286+0000 INFO 1652 ms: (planning: 1018, waiting: 0) - 14 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.85.52:42344 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:Card{card_last_4: {card_last_4},card_bin: {card_bin}}) where id(ps)=5333585 return id(n) as node_id - {}
2019-12-04 20:56:18.288+0000 INFO 1687 ms: (planning: 1245, waiting: 0) - 6 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.44.126:51652 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:Card{card_last_4: {card_last_4},card_bin: {card_bin}}) where id(ps)=5343980 return id(n) as node_id - {}
2019-12-04 20:56:18.353+0000 INFO 1762 ms: (planning: 1376, waiting: 0) - 26 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.44.126:51664 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:IP{ip_address: {ip_address}}) where id(ps)=5343781 return id(n) as node_id - {}
2019-12-04 20:56:18.421+0000 INFO 1727 ms: (planning: 1418, waiting: 0) - 48 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.85.52:42340 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:ConsumerInternalId{consumer_internal_id: {consumer_internal_id},client_id: {client_id}}) where id(ps)=5344063 return id(n) as node_id - {}
2019-12-04 20:56:18.432+0000 INFO 1840 ms: (planning: 1211, waiting: 0) - 16 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.85.52:42342 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:ConsumerInternalId{consumer_internal_id: {consumer_internal_id},client_id: {client_id}}) where id(ps)=5276381 return id(n) as node_id - {}
2019-12-04 20:56:18.456+0000 INFO 1746 ms: (planning: 1293, waiting: 0) - 6 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.85.52:42338 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:Card{card_last_4: {card_last_4},card_bin: {card_bin}}) where id(ps)=5344098 return id(n) as node_id - {}
2019-12-04 20:56:18.474+0000 INFO 1870 ms: (planning: 1437, waiting: 0) - 6 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.85.52:42330 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:Card{card_last_4: {card_last_4},card_bin: {card_bin}}) where id(ps)=5343702 return id(n) as node_id - {}
2019-12-04 20:56:18.478+0000 INFO 1768 ms: (planning: 1240, waiting: 0) - 8 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.85.52:42328 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:Card{card_last_4: {card_last_4},card_bin: {card_bin}}) where id(ps)=5343999 return id(n) as node_id - {}
2019-12-04 20:56:18.770+0000 INFO 1676 ms: (planning: 1293, waiting: 0) - 9 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.44.126:51656 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:Card{card_last_4: {card_last_4},card_bin: {card_bin}}) where id(ps)=5343929 return id(n) as node_id - {}
2019-12-04 20:56:18.831+0000 INFO 1577 ms: (planning: 1133, waiting: 0) - 12 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.44.126:51660 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:Card{card_last_4: {card_last_4},card_bin: {card_bin}}) where id(ps)=5276381 return id(n) as node_id - {}
2019-12-04 20:56:19.099+0000 INFO 1795 ms: (planning: 1336, waiting: 0) - 8 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.44.126:51646 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:Card{card_last_4: {card_last_4},card_bin: {card_bin}}) where id(ps)=2386925 return id(n) as node_id - {}
2019-12-04 20:56:19.144+0000 INFO 1715 ms: (planning: 1286, waiting: 0) - 8 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.44.126:51658 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:Card{card_last_4: {card_last_4},card_bin: {card_bin}}) where id(ps)=5343975 return id(n) as node_id - {}
2019-12-04 20:56:19.227+0000 INFO 1618 ms: (planning: 1287, waiting: 0) - 6 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.85.52:42346 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:Card{card_last_4: {card_last_4},card_bin: {card_bin}}) where id(ps)=5344156 return id(n) as node_id - {}
2019-12-04 20:56:19.266+0000 INFO 1849 ms: (planning: 1508, waiting: 0) - 25 page hits, 0 page faults - bolt-session bolt neo4j neo4j-java/1.7.5-d56154a7e96ff71615b894ee9a15d08c370691e6 client/10.132.44.126:51654 server/10.132.139.216:7687> neo4j - match (ps:Persona)<-[:BELONGS_TO]-(n:Card{card_last_4: {card_last_4},card_bin: {card_bin}}) where id(ps)=5211232 return id(n) as node_id - {}