Build: #224 was successful Scheduled with changes by Guus der Kinderen

Build result summary

Details

Completed
Queue duration
3 minutes
Duration
1 minute
Labels
None
Revision
78a791d360ea34de93b69e23f80bf1dfb4893985
Total tests
489
Successful since
#1 ()

Tests

Code commits

Author Commit Message Commit date
Guus der Kinderen Guus der Kinderen 78a791d360ea34de93b69e23f80bf1dfb4893985 OF-2511: Prevent loading unused historic messages for MUC rooms.
Typically, rooms are configured to retain only 25 message of history, to be sent to clients that join a room (note that this does _not_ relate at all to MAM).

When loading a room from the database, Openfire should not load _all_ messages from the database, but only the ones that are potentially going to be sent to clients. For rooms which a large history, this saves a considerable amount of resources.

This commit uses somewhat of a hack that is based on database driver functionality (skipping ahead in the resultset), as opposed to modifying the SQL query that is used to obtain the records. Such modification would likely depend on non-standardized SQL staments (TOP / LIMIT / ROWNUM), which would introduce the need for database-vendor specific code.

Jira issues

IssueDescriptionStatus
Unknown Issue TypeOF-2511Could not obtain issue details from Jira