Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Large AddressSpaces with Custom Nodemanager - References to ns=0
May 4, 2014
19:06, EEST
Avatar
hbrackel
Member
Members
Forum Posts: 144
Member Since:
February 21, 2014
sp_UserOfflineSmall Offline

Hi,

I developed a server which exposes a huge number of nodes over multiple nameSpaces. I use a set of custom nodemanagers and the performance is excellent. Almost.
While the nodemanagers work very efficient, it is very slow to initially setup the references to ns=0, for instance the “typeDefinitionOf” references. With > 700k nodes and even more references, this virtually takes “forever”.
Is there any way to intercept the browse service calls of the rootNodeManager in order to “add” the references on demand – similar to what can be done with the custom nodemanager?

Thanks, Hans-Uwe

May 6, 2014
7:03, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Yes, you can use the NodeManagerListener or override NodeManagerUaNode the same way.

There’s also been a task to optimise the initialisation of the reference initialisation in respect to SDK 2.0. If you contact the support, we will provide you a beta version, if we get such improvements available – we will check this right now.

May 6, 2014
13:15, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Taking another look, it seems that it’s not currently possible to add references on the fly, as you would need in the NodeManagerListener, which you would need to be able to modify NodeManagerRoot. But we will consider a new method in the listener, getReferences(), which would enable you to add custom references when requested.

What I talked about optimising the reference initialisation obviously will not help you.

May 6, 2014
18:14, EEST
Avatar
hbrackel
Member
Members
Forum Posts: 144
Member Since:
February 21, 2014
sp_UserOfflineSmall Offline

Thanks for considering a respective method/callback in the future. Would it be possible to subclass NodeManagerRoot and use a custom type instead and overwrite the getReferences() method? Technically, it looks as if it might work but I’m uncertain about any potential side effects.

May 7, 2014
8:10, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

NodeManagerListener.onGetReferences() is now added to the latest internal beta version. Just send an email to get it for a test…

June 25, 2014
20:38, EEST
Avatar
hbrackel
Member
Members
Forum Posts: 144
Member Since:
February 21, 2014
sp_UserOfflineSmall Offline

Jouni Aro said

NodeManagerListener.onGetReferences() is now added to the latest internal beta version. Just send an email to get it for a test…

The #onGetReferences() callback did unfortunately not make it into the recent 1.5.0 release. Would it be possible to get a patch which adds this back again?

Thanks, Hans-Uwe

June 26, 2014
9:05, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

That was probably a misunderstanding: it was not going to be applied to the 1.x versions, but to the upcoming 2.0, which is in beta. I will send you information about that by email.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
64 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 738

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1524

Posts: 6451

Newest Members:

jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1