I checked my list of users with 1 or more XWiki.Notifications.Code.NotificationFilterPreferenceClass object and I have 20 with 10 or 30 object then I don’t know if it is related with.
Do you know how I can resolv my issue (with javamelody or another way)?
That’s interesting. We need be able to understand if the new notifications feature still has performance issues. Normally @gdelhumeau is supposed to have fixed them but maybe there are some remaining.
@gdelhumeau What method do we have to debug perf issues on Notifications? Do you have some special debug logs to turn on, or some other way? Thanks
You may be able to get more information with glowroot actually. You can see slow requests and tie it with the underlying code.
Hum it is not simple for instant to upgrade xwiki version, because I’m home actually (because a nice doctor removed pieces of iron from my leg after my leg broken one year ago) and I need to merge all my customization before upgrade…
Here my piece of code from your snippet to remove all XWiki.Notifications.Code.NotificationFilterPreferenceClass object on all xwiki user
#if ($request.confirm == '1')
#set($className='XWiki.Notifications.Code.NotificationFilterPreferenceClass')
#set($hql = "select obj.name from BaseObject obj where obj.className='XWiki.XWikiUsers'")
## display 10 users
## set($results = $xwiki.search($hql, 10, 0))
#set($results = $xwiki.search($hql))
#foreach ($User in $results)
## * [[$User]]
## if you have more than one object on a page, you will have to loop over them and use "$doc.use"
#set ($targetDoc = $xwiki.getDocument("$User"))
#set ($result = $targetDoc.removeObjects("$className"))
#if ($result)
#set ($discard = $targetDoc.save('Removed all xobjects'))
* XObjects $className removed on [[$targetDoc]]!
#else
## Error: XObjects not removed on [[$targetDoc]] or object missing!
#end
#end
#else
----
[[**SUPPRESSION** des objets XWiki.Notifications.Code.NotificationFilterPreferenceClass de tous les utilisateurs>>||queryString='confirm=1']]
#end