I use this SQL query to create an index:
$query = "CREATE INDEX id_index2 ON countries(geoname_id, name)";
How to update the index when adding new records?
Should I run a PHP script with an update request in CRON and run it every night?
Is this the best practice for automatically updating the index?
source share