On Thu, Feb 17, 2011 at 3:32 PM, Massimo Lusetti <[email protected]> wrote:

> I'm trying to populate the DB with Nodes with only one String
> property, an IPv4 address. This is just a test case for my typical use
> case and it shows that when the process starts the first 440744 nodes
> are going in at a speed of 1.05ms each Node but this speed drops to
> 8.75ms after having inserted 12545155 nodes.
> The final DB size is: 2.9G since i tweaked the sintrg_block_size at
> graphdb creation time to 60bytes instead of 120...
>

I recently (yesterday) committed a new feature for Neo4j that will store
these kinds of short strings, making Neo4j store them without having to
involve the DynamicStringStore at all. You should see a substantial speedup
from using that. IPv4 addresses will always be storeable as a short string,
so if all you store as properties are IPv4 addresses the DynamicStringStore
wouldn't be used at all in your use case.

I've written a bit about how it works on my blog:
http://journal.thobe.org/2011/02/better-support-for-short-strings-in.html

The feature is available in the latest snapshot build:
http://neo4j.org/get?file=neo4j-1.3-SNAPSHOT-unix.tar.gz
And will be released in the next milestone.


WRT the slowdown you've seen, I'll have to investigate that further.

Cheers,
-- 
Tobias Ivarsson <[email protected]>
Hacker, Neo Technology
www.neotechnology.com
Cellphone: +46 706 534857
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to