Merge branch 'story/116962601-faster-logs' into staging

This commit is contained in:
Vladimir Krylov 2016-04-14 14:33:08 +03:00
commit fa888aa7b0
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