[Neo4j] architecture question
anders at neotechnology.com
Wed Jun 30 08:45:20 CEST 2010
In most cases it should be a better choice to directly store the
attribute values in the underlying node like outlined here:
Then there is no need for an update() method, and less memory will be
consumed as well.
If you have questions regarding this approach, please post them!
On 06/30/2010 01:27 AM, Дмитрий Медведев wrote:
> I have two classes: UserFactory and User. The UserFactory.create() returns
> an instance of the User class, which internally has code that updates
> properties of the corresponding Node object whenever an User.update()
> function is called.
> *The question is*: should I move the internals of the User.update() function
> to the UserFactory class, since, I suspect that each and every instance of
> the User class has its separate copy of the update code, thus spoiling
> memory a lot. What would you suggest?
> Best Regards,
> Dmitry N. Medvedev,
> +7 (903) 506 0376
> dmitry.medvedev at gmail.com
> Neo4j mailing list
> User at lists.neo4j.org
More information about the User