mirror of https://github.com/sipwise/db-schema.git
New index for watchers table for columns "inserted_time" and "status". This is a little performance boost since the function ps_watchers_db_timer_clean() cleans pending subscriptions using this columns inside the "where" clause. Change-Id: I9cb2220f6fe89aa2070d9a739c4a3a0417e3de71mr11.0
parent
54bb403412
commit
c29bb09081
@ -0,0 +1,3 @@
|
||||
USE kamailio;
|
||||
|
||||
DROP INDEX inserted_time_status_idx ON watchers;
|
@ -0,0 +1,3 @@
|
||||
USE kamailio;
|
||||
|
||||
CREATE INDEX inserted_time_status_idx ON watchers (`inserted_time`, `status`);
|
Loading…
Reference in new issue