OK Thank you. i'll try it. But get node's property is still a problem,When I
need more threads access one node's property.
The "uarr" just have 40 thousand fans. If I want finish the sort will cost
800ms once. This is notqualified . Now I changed my code. Got the property
before sort. Put into an
How man nodes are in uarr in the follow case?
UserNode[] uarr =
Neo4jUserUtils.createUserNodeListFromTraverse2(travDesc.traverse(underlyingNode));
Can you describe what your pages represent and what data representation you
are creating in the code?
Without looking at your code too closely it see
The sort code is here:
//=
*//create a traversal to get all user's fans*
TraversalDescription travDesc = Traversal.description()
.breadthFirst()
.relationships(RelationTypes.FOLL
You have some some things in your code that make it difficult to know what
you want to test. You are running 100 concurrent threads. However, each of
those threads is getting the property value of only one node. Each thread is
reading that single node's property one million times sequentially. That
yeah,this is a real problem in my scenario. The 100 concurrent threads is
getProperty not setProperty.In my scenario I just sort a node list by node's
property. And I found it is not fast in concurrent requests.Then I found
these.
--
View this message in context:
http://neo4j-community-discussi
If you've got 100 concurrent threads writing to one node only one can write
to it at a time. Write locks are held from the time you do a write operation
on that node until that transaction which made that write operation
finishes. So in this scenario your setProperty calls will be serial instead
of
hi McKinley,
This is my test code:
http://neo4j-community-discussions.438527.n3.nabble.com/file/n3366449/Entity.java
Entity.java
http://neo4j-community-discussions.438527.n3.nabble.com/file/n3366449/EntityTest2.java
EntityTest2.java
Do the testCreateNode to create a node with a property "fansn
Oh, strange. Your code does show on the Nabble board, but not on the mailing
list.
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Has-been-blocked-when-i-get-the-node-s-property-tp3365819p3365819.html
However, I don't see the part in your screenshot that shows you are getting
blocke
Your code did not come through for me. You might want to use
http://pastebin.com/ and post a link in your message.
Kind regards,
McKinley
On Sat, Sep 24, 2011 at 8:03 PM, iamyuanlong wrote:
> hi all ,
> This is my code:
>
>
> When the method been requested in a concurrent request . 100 concu
hi all ,
This is my code:
When the method been requested in a concurrent request . 100 concurrent
I got the log like this:
http://neo4j-community-discussions.438527.n3.nabble.com/file/n3365819/zuse.png
I have been blocked? why?
Waiting the answer .Thank you.
--
View this message in conte
10 matches
Mail list logo