2,5 миллиона записей не должны быть никакой проблемой. Совместное использование схемы помогло бы. Кроме того, mysqltuner.pl (упомянутый в другом ответе) предупредит Вас о некоторых проблемах my.cnf - таких как innodb_buffer_pool, являющийся меньшим, чем размер Ваших индексов. Определенно выполненный это. innodb_buffer_pool должен быть установлен максимально высоко.
Если у Вас будут какие-либо Столбцы текста, то любые запросы, которые включают сканирование большого количества строк, будут работать намного лучше, если Вы выгоните те столбцы с квартиры в отдельную таблицу. Еще лучше используйте плагин InnoDB, Сервер Percona или MariaDB и включите сжатие для тех новых таблиц столбца текста.
Is your goal to only keep the BGP announcement alive regardless of the interface status? On my Foundry devices I would create a static rule for the BGP network to null with a very high distance (so the interface route always took precedence). Juniper might support something similar (usually BGP just wants the route to exist in the table in some form).
I don't have a way to actually test this. But maybe something like:
set routing-options static route 5.5.5.0/24 retain discard preference 250
According to the docs there is a retain
, discard
, and preference
arguments to static route. Assuming your subnet was 5.5.5.0/24, this might keep the route in the table, regardless of the routing protocol state, send all traffic to /dev/null, and give it a higher preference so that default BGP or static route distance should take precedence.
I have no way to test this though. Try at your own risk of course.