Hi Sergey,

You need to figure out where your import process is going wrong.

Creating same-name-siblings is a problem. While JCR can represent them there 
are performance problems (as you have noted), and many parts of magnolia cannot 
deal with same name siblings correctly.

AFAIK the only way to create a same name sibling with the UI is by using the 
import feature. In other situations the UI prevents the same-name-sibling (by 
adding a unique number to the name eg "untitled0").

As you have noted, you can delete the same-name-siblings from the UI, delete 
the higher numbers first until you are left with only the original.

To really solve your problem you will need to fix your scheduler job so that 
the same-name-siblings don't get created in the first place...

Regards from Vienna,

Richard

> -----Ursprüngliche Nachricht-----
> Von: [email protected] [mailto:user-list-owner@magnolia-
> cms.com] Im Auftrag von Sergey (via Magnolia Forums)
> Gesendet: Dienstag, 24. Juni 2014 14:10
> An: Magnolia User List
> Betreff: [magnolia-user] How to get rid of JCR nodes duplicates
> 
> Hello!
> In my module I import users (1000+ users) from another system using every
> day scheduler job. I create them using MgnlUsersManager and update them
> if they're already exist. But sometimes something goes wrong and suddenly
> all users are copied instead of being updating!
> And I get copies like this:
> 
> /admin/john[mgnl:user]
> /admin/jack[mgnl:user]
> ...
> 
> /admin/john[1][mgnl:user]
> /admin/jack[1][mgnl:user]
> ...
> /admin/john[31][mgnl:user]
> /admin/jack[31][mgnl:user]
> 
> Sometimes it happens with another JCR nodes - e.g. if you copy some node
> in the configuration and place it next to the original.
> 
> When you delete the first node, then the last one, e.g. jack[31] will be
> deleted, but all others still exist.
> 
> In the end it leads to huge performance problems and all this duplicates take
> a lot of disk space.
> 
> I use Magnolia 4.4.8 and MySQL. Please help!
> 
> --
> Context is everything: http://forum.magnolia-
> cms.com/forum/thread.html?threadId=ee0426c6-f7cc-4a9e-bc4c-
> 56369b4c8c9c
> 
> 
> ----------------------------------------------------------------
> For list details, see http://www.magnolia-cms.com/community/mailing-
> lists.html
> Alternatively, use our forums: http://forum.magnolia-cms.com/
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------



----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to