Don't retrieve all offline messages only to count them.

Description

The implementation in Openfire of XEP-0013 retrieves all messages from the database, only to return a count of unread messages. That is not very effective. Instead, use a database query that sums rows (which is already available).

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created September 30, 2019 at 10:27 AM
Updated October 26, 2019 at 12:13 PM
Resolved October 26, 2019 at 12:13 PM