[Neo] Fwd: Performance question
Atle Prange
atle.prange at gmail.com
Wed Apr 21 14:56:19 CEST 2010
I got the same thing:
Here is my answer to your post:
I agree with you completely, and i am trying to get the best of
both worlds. Maybe bytecode manipulation is the only way to
go....
But are you in fact saying that i am implementing an
antipattern, and both jo4neo and neo-persistence use the same
antipattern?
A related question on performance. When fetching relations from
a node using Node.getRelatioships(RelationshipType...types), is
the node loading all relationships, and the collecting all of
the given types, or are just the matching relationships loaded?
-atle
On Wed, 2010-04-21 at 11:10 +0200, Tobias Ivarsson wrote:
> I just received a failed delivery notification for this message that I sent
> a week ago, so here it is again.
>
> ---------- Forwarded message ----------
> From: Tobias Ivarsson <tobias.ivarsson at neotechnology.com>
> Date: Thu, Apr 15, 2010 at 11:42 PM
> Subject: Re: [Neo] Performance question
> To: Neo user discussions <user at lists.neo4j.org>
>
>
> On Thu, Apr 15, 2010 at 7:36 PM, Atle Prange <atle.prange at gmail.com> wrote:
>
> > Node-wrapping gives me two options: 1) Resort to byte-code manipulation
> > (using ASM or similar) to intercept all setting and getting of fields, and
> > draw the values from the Node if the object is in managed state, or 2) Have
> > every entity subclass some node-aware class, and have the subclasser set
> > and
> > get values from the node.
> >
>
> If you restrict the domain classes to being interfaces you could use Java
> dynamic proxies:
> http://java.sun.com/javase/6/docs/api/index.html?java/lang/reflect/Proxy.html
>
> Although I do encourage you to try any esoteric solution you can come up
> with, if you never experiment you'll never invent anything new,
>
> Happy hacking!
> --
> Tobias Ivarsson <tobias.ivarsson at neotechnology.com>
>
> Hacker, Neo Technology
> www.neotechnology.com
> Cellphone: +46 706 534857
>
>
>
More information about the User
mailing list