Add index to WalletObjects + allow additional queries

This commit is contained in:
nicolas.dorier
2022-11-19 23:39:41 +09:00
parent d2f071b8b2
commit 4ce504a1e1
5 changed files with 95 additions and 28 deletions

View File

@@ -69,6 +69,12 @@ namespace BTCPayServer.Data
o.Type,
o.Id,
});
builder.Entity<WalletObjectData>().HasIndex(o =>
new
{
o.Type,
o.Id
});
if (databaseFacade.IsNpgsql())
{