Skip to content
Permalink
Browse files

Added db index for user_timing table

  • Loading branch information...
nilskuhn committed Jun 19, 2019
1 parent b0d67d7 commit b2c03288760b6d126e9b3469afb1be29050ac7f1
@@ -27,6 +27,10 @@ class UserTiming {
})
}

static mapping = {
name(index: 'name_idx')
}

Double getValue(){
return this.type == (UserTimingType.MARK || UserTimingType.HERO_MARK) ? this.startTime : this.duration
}
@@ -0,0 +1,7 @@
databaseChangeLog = {
changeSet(author: "nkuhn (generated)", id: "1560938180861-3") {
createIndex(indexName: "name_idx", tableName: "user_timing") {
column(name: "name")
}
}
}
@@ -78,4 +78,5 @@ databaseChangeLog = {
include file: '2019-04-30-v512-browser-in-perf-aspect.groovy'
include file: '2019-05-06-v512-add-os-and-device-type.groovy'
include file: '2019-05-20-migrate-otto-locations.groovy'
include file: '2019-06-19-add-user-timing-idx.groovy'
}

0 comments on commit b2c0328

Please sign in to comment.
You can’t perform that action at this time.