#1204 A lot of requests to the database during initial presence probes.
What steps will reproduce the problem?
1. Create a lot of users, ~100
2. Login with few of them and add everyone to your roster
3. Repeat with few users, don't accept inbound subscriptions
4. Login with some of that user who has everyone in the roster
What is the expected output?
Expected to login without database request for each offline contact
What do you see instead?
Tons of request to the database.
What version of the product are you using? On what operating system?
Please provide any additional information below.
As was mentioned, the main issue is non-optimal behavior in is_contact_pending_in.