We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d884a4d commit cbda2c9Copy full SHA for cbda2c9
pkg/bindinfo/binding_cache.go
@@ -60,7 +60,7 @@ func (u *bindingCacheUpdater) LoadFromStorageToCache(fullLoad bool) (err error)
60
timeCondition = ""
61
} else {
62
lastUpdateTime = u.lastUpdateTime.Load().(types.Time)
63
- timeCondition = fmt.Sprintf("WHERE update_time>'%s'", lastUpdateTime.String())
+ timeCondition = fmt.Sprintf("USE INDEX (time_index) WHERE update_time>'%s'", lastUpdateTime.String())
64
}
65
condition := fmt.Sprintf(`%s ORDER BY update_time, create_time`, timeCondition)
66
bindings, err := readBindingsFromStorage(u.sPool, condition)
0 commit comments