Skip to content

Commit 2abfe06

Browse files
authored
Create an index on shortName in the symbol index to make queries faster (#442)
1 parent 8df2a05 commit 2abfe06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/main/kotlin/org/javacs/kt/index/SymbolIndex.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ private object Symbols : IntIdTable() {
2626
val visibility = integer("visibility")
2727
val extensionReceiverType = varchar("extensionreceivertype", length = MAX_FQNAME_LENGTH).nullable()
2828
val location = optReference("location", Locations)
29+
30+
val byShortName = index("symbol_shortname_index", false, shortName)
2931
}
3032

3133
private object Locations : IntIdTable() {

0 commit comments

Comments
 (0)