Tobias,
The time includes jvm startup and shut down. I suspected this was the
reason. Since my requests to the db will be very simple node relation
queries, I'll probably need to cache results some how to avoid a 1-2 second
query. The other option would be to embed the db in a persistent java
program to avoid overhead of jvm startup/shutdown on every wsgi request.
Anyways, I'll ping the mailing list if i have any further questions. Thanks
for helping me out :)

- Karan

On Tue, Aug 4, 2009 at 3:12 AM, Tobias Ivarsson <
[email protected]> wrote:

> On Tue, Aug 4, 2009 at 11:31 AM, Karan Bhangui <[email protected]
> >wrote:
>
> > Perfect! The test script is running without errors :D
> >
> > I want to thank you a lot for your cooperation and quick fix. Look
> > forward to using Neo4J in my project.
> >
> > One thing though: this test script takes 1.2 seconds to run. Is this
> > normal?
>
>
> Hmm... Is that total execution time (including Neo4j startup and shutdown
> and VM startup/shutdown) or is it the time for the actual code that does
> something, there is a big difference, especially for something as short as
> 1.2 seconds...
>
> If it is including startup and such then I would say that it's nothing to
> worry about, after all it is starting up a JVM and either initializing or
> verifying a Neo4j data store. If this is the time for the actual payload of
> the script (from right after "neo = NeoService(...)" to right before
> "neo.shutdown()") then it is probably a little much for a small test
> script,
> and I would like to have a look at what it is doing.
>
> Cheers,
> --
> Tobias Ivarsson <[email protected]>
> Hacker, Neo Technology
> www.neotechnology.com
> Cellphone: +46 706 534857
> _______________________________________________
> Neo mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Karan Bhangui
Email: [email protected]
Site: http://karan.bhangui.com
_______________________________________________
Neo mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to