1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-20 03:59:43 -05:00

optimize chat filtering/searching

This commit is contained in:
RaidMax
2022-06-16 18:03:23 -05:00
parent 6f5db426c1
commit c2353f5bb8
10 changed files with 5072 additions and 38 deletions

View File

@ -0,0 +1,24 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Data.Migrations.Postgresql
{
public partial class AddDescendingTimeSentIndexEFClientMessages : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql(
@"CREATE INDEX""IX_EFClientMessages_TimeSentDesc""
ON public.""EFClientMessages"" USING btree
(""TimeSent"" DESC NULLS LAST)
TABLESPACE pg_default;"
);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql(@"DROP INDEX public.""IX_EFClientMessages_TimeSentDesc""");
}
}
}