mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
Story#116962601 - faster epp logs
This commit is contained in:
parent
8f1f31f8de
commit
5373c76c40
3 changed files with 16 additions and 2 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue