Patch to add index to SMS table

Alexander Nikolaev variomap at
Wed Mar 25 11:46:23 UTC 2015


I would like to introduce new index for the SMS table.

I've run benchmarks using test database with about 8500 records in
both SMS and Subscriber tables. Introducing SMS(dest_addr) index
reduces execution time 4 times for this benchmark.

As far as I can see,  db_sms_get_unsent() gets called frequently, so
real-life benefits might also be considerable, especially for the
large datasets.

SQL queries benchmark script (python):


More information about the OpenBSC mailing list