Quantcast
Channel: Ignite Realtime : Unanswered Discussions - Support
Viewing all articles
Browse latest Browse all 4979

Too many ofUser queries on Openfire

$
0
0

We have implemented chat using open-fire. Everything works fine except for that every I load my page, Many(no. of users on chat) queries are getting fired.

 

    SELECT salt, serverKey, storedKey, iterations, name, email, creationDate, modificationDate FROM ofUser WHERE username='1'

    SELECT salt, serverKey, storedKey, iterations, name, email, creationDate, modificationDate FROM ofUser WHERE username='2'

    SELECT salt, serverKey, storedKey, iterations, name, email, creationDate, modificationDate FROM ofUser WHERE username='3'

    ..

    ..

    ..

    ..

    SELECT salt, serverKey, storedKey, iterations, name, email, creationDate, modificationDate FROM ofUser WHERE username='100'

 

Please help as i feel these many queries on page load will shut down by server at peak hours.

Is there any way to cache these queries?


Viewing all articles
Browse latest Browse all 4979

Trending Articles