Add time index to connection log (#29281)

* Add time index to connection log

Queries go nyoom.

* Don't let me code shit at 5 AM
This commit is contained in:
Pieter-Jan Briers
2024-06-21 15:29:10 +02:00
committed by GitHub
parent 730a4d289d
commit f041f58a6d
7 changed files with 3816 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Content.Server.Database.Migrations.Postgres
{
/// <inheritdoc />
public partial class ConnectionLogTimeIndex : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateIndex(
name: "IX_connection_log_time",
table: "connection_log",
column: "time");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_connection_log_time",
table: "connection_log");
}
}
}