Projects tigase _server server-core Issues #377
Roster management optimizations (#377)
wojciech.kapcia@tigase.net opened 1 decade ago

Investigate possibilities to decrease number of database I/O while performing management of roster by decreasing number of calls to saveUserRoster()

mail: Batch writing roster items

wojciech.kapcia@tigase.net commented 6 years ago

Reported issue related mostly to UserRosterManagemet* ad-hoc groovy scripts, which called in succession .addBuddy() and .setBuddySubscription() causing two calls to .saveUserRoster(). I extended .addBuddy() with subscription parameter. Non-script usage won't see much benefit from this change due to more intricate logic regarding handling roster manipulation and handling subscription in Presence plugin.

issue 1 of 1
Type
Task
Priority
Normal
Assignee
RedmineID
2341
Version
tigase-server-8.0.0
Estimation
4h
Spent time
7h 30m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#377
Please wait...
Page is in error, reload to recover