<div dir="ltr">Hi opensips community.<br><br>I have a question about an sql structure of the location table.<br>I came across a capacity obstacle when working without 'account_contact_idx' on the opensips version 2.4+<br>I'm completely aware that 'account_contact_idx' was deprecated after the 2.1 branch.<br><br>What did I do, was setting up of the database structure as for 2.4 version, but with added 'account_contact_idx' unique key to a location table.<br>Why did I do this? Because the capacity of the database increased by several times.<br><br>As an example:<br>When having a usual 2.4 version db structure, a sending of 50-60 registrations per second gives me 2/3 of requests that are re-transmitted.<br>When having a location table with 'account_contact_idx' unique key, I can send 700+ registrations per second without any re-transmissions occurred.<br><br>Why does it happen?<br><br>My mysql setup is as following:<br>Version - 5.7.27<br><div>engine for opensips database - innodb<br></div><div><br></div><div>binlog_format = mixed  <--- needed to fix a replication errors 1032/1062 when failing over</div>max_connections = 2000<br>max_allowed_packet = 16M<br>table_open_cache = 2000<br><div>max_binlog_size = 500M</div><div><br></div><br>It almost works out well with 'account_contact_idx' unique key, but it generates lots of duplicate entries, that's I want to deprecate this.<br>But I don't know of how to save the same capacity as we have with that unique key.<br><br>Looking forward to any advice, thanks!<br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr"><font style="background-color:rgb(255,255,255)" color="#0b5394">Best regards,<br></font></div><div dir="ltr"><font style="background-color:rgb(255,255,255)" color="#0b5394">Donat Zenichev<br><br></font></div></div></div></div></div></div></div></div></div>