Story#116962601 - faster epp logs

This commit is contained in:
Vladimir Krylov 2016-04-14 14:32:32 +03:00
parent 8f1f31f8de
commit 5373c76c40
3 changed files with 16 additions and 2 deletions

View file

@ -0,0 +1,6 @@
class AddTimeIndexingToEppLog < ActiveRecord::Migration
def change
ApiLog::EppLog.connection.execute( "CREATE INDEX CONCURRENTLY epp_logs_created_at ON epp_logs USING btree (extract(epoch from created_at));")
ApiLog::ReppLog.connection.execute("CREATE INDEX CONCURRENTLY repp_logs_created_at ON repp_logs USING btree (extract(epoch from created_at));")
end
end