Pre-Submission Checklist

Type Of Change

Checklist:

Description

This is a small performance improvement, the goal is to avoid issuing rollbacks if not necessary.
On my setup, Kamailio presence executes a lot of ROLLBACKS in MariaDB since function process_dialogs() runs repeatedly.
What see inside MariaDB logs is the following

SET autocommit=0
select `presentity_uri`,`callid`,`to_tag`,`from_tag`,`event` from `active_watchers` where `updated`=3 AND `event`<>'presence.winfo'\G
ROLLBACK

Maybe we can improve this behaviour telling presence to do autocommit to do not execute them if the select returns zero elements?


You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/3183

Commit Summary

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/pull/3183@github.com>