Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9305877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T00:01:59+00:00 2026-06-19T00:01:59+00:00

I started testing Neo4j for a program and I am facing some performance issues.

  • 0

I started testing Neo4j for a program and I am facing some performance issues. As mentioned in the title, Neo4j is directly embedded in the java code.

My graphs contains about 4 millions nodes and several hundred million relationships. My test is simply to send a query counting the number of inbound relationships for a node.

This program uses ExecutionEngine execute procedure to send the following query:

start n=node:node_auto_index(id="United States") match s-[:QUOTES]->n return count(s)

By simply adding some prints I can see how much time this query took which is usually about 900ms which is a lot.

What surprises me the most is that I receive a “query execution time” in the response, which is really different.

For instance a query returned:

+----------+
| count(n) |
+----------+
| 427738   |
+----------+
1 row
1 ms 

According to this response, I undertand that Neo4j took 1ms for the query, but when I print some log messages I can see that it actually took 917ms.

I guess that 1ms is equal to the time required to find the indexed object “United States”, which would mean that Neo4j required about 916ms for the rest, like counting the number of relationships. In this case, how can I get getter performances for this query?

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T00:02:00+00:00Added an answer on June 19, 2026 at 12:02 am

    Query timers were broken in 1.8.1 and 1.9.M04, when the cypher lazy stuff was fixed. (Definitely a worthwhile trade for most use cases). But yeah, I think it will be fixed soon.

    For now you’ll have to time things externally.

    Update:
    As for your question about whether that time is reasonable… It basically needs to scan all ~400k nodes to count them. This is probably reasonable, even if the cache is warmed up and all of those fit into RAM. Having “super nodes” like this is usually not best practice if it can be avoided, although they are going to be making a lot of improvements for this case in future versions (at least, that’s what I hear).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've recompiled some of my code under Java 7 and started testing. Quite soon
I have just started out with testing some php mvc framework In it, it
We have started using the boost unit testing library for a large existing code
Being frustrated about fragment behavior, I started doing some testing. I have one activity
Just started testing nodejs, and wanted to get some help in understanding following behavior:
I have started testing my UI using qUnit, so I need to simulate some
I've just started testing some upload utility i've built and put 47 items for
I've just recently started using unit testing, and I understand some of the main
Today I started testing JRuby. I'm a Java a Ruby developer so I liked
I've just started testing the water with WPF and I'm trying to bind the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.