mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
use sparse index
This commit is contained in:
1 file changed
+1
-1
@@ -313,7 +313,7 @@ export async function apply(ctx: Context) {
|
||||
db.ensureIndexes(
|
||||
coll,
|
||||
{ key: { lower: 1 }, name: 'lower', unique: true },
|
||||
{ key: { host: 1 }, name: 'host', unique: true },
|
||||
{ key: { host: 1 }, name: 'host', sparse: true },
|
||||
),
|
||||
db.ensureIndexes(
|
||||
collUser,
|
||||
|
||||
Reference in new issue
Block a user