mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 If the data repo indexing time is greater than 12s, prompt user to purge the data repo https://github.com/siyuan-note/siyuan/issues/9613
This commit is contained in:
parent
08a374825f
commit
52943932e9
5 changed files with 7 additions and 7 deletions
|
|
@ -26,14 +26,14 @@ type Repo struct {
|
|||
Key []byte `json:"key"` // AES 密钥
|
||||
|
||||
// 同步索引计时,单位毫秒,超过该时间则提示用户索引性能下降
|
||||
// If the data repo indexing time is greater than 7s, prompt user to purge the data repo https://github.com/siyuan-note/siyuan/issues/9613
|
||||
// If the data repo indexing time is greater than 12s, prompt user to purge the data repo https://github.com/siyuan-note/siyuan/issues/9613
|
||||
// Supports configuring data sync index time-consuming prompts https://github.com/siyuan-note/siyuan/issues/9698
|
||||
SyncIndexTiming int64 `json:"syncIndexTiming"`
|
||||
}
|
||||
|
||||
func NewRepo() *Repo {
|
||||
return &Repo{
|
||||
SyncIndexTiming: 7 * 1000,
|
||||
SyncIndexTiming: 12 * 1000,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue