alist/internal/db
BoYanZh 179d285564
feat: optimize database search (#2687)
* feat: remove index on `SearchNode.Name`

As we do not use s% on name column, index there does not work

* fix: init index after init data

Or on the first run, it will log 'init index error: readObjectStart: expect { or n, but found , error found in #0 byte of ...||..., bigger context ...||...'

* fix: match parent more precisely

It will match `/a/bc` if we search in `/a/b` originally.
But it is not backward compatible by adding a suffix `/`
to all the data in parent field
2022-12-12 20:20:01 +08:00
..
db.go feat: multiple search indexes (#2514) 2022-11-28 13:45:25 +08:00
meta.go chore: go fmt 2022-08-03 14:26:59 +08:00
meta_test.go chore: go fmt 2022-08-03 14:26:59 +08:00
searchnode.go feat: optimize database search (#2687) 2022-12-12 20:20:01 +08:00
settinghooks.go feat: multiple search indexes (#2514) 2022-11-28 13:45:25 +08:00
settingitem.go fix: settings map read and write concurrently 2022-11-28 16:54:03 +08:00
storage.go fix: wrong columnName index 2022-09-09 16:44:54 +08:00
user.go feat: cancel 2fa api 2022-08-07 11:59:33 +08:00
util.go chore: go fmt 2022-08-03 14:26:59 +08:00