Explorar el Código

add index to ExpiresAt (#426)

master
cuibty hace 5 años
committed by Savorboard
padre
commit
5f690e723b
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. +4
    -2
      src/DotNetCore.CAP.MySql/IStorage.MySql.cs

+ 4
- 2
src/DotNetCore.CAP.MySql/IStorage.MySql.cs Ver fichero

@@ -70,7 +70,8 @@ CREATE TABLE IF NOT EXISTS `{prefix}.received` (
`Added` datetime NOT NULL,
`ExpiresAt` datetime DEFAULT NULL,
`StatusName` varchar(50) NOT NULL,
PRIMARY KEY (`Id`)
PRIMARY KEY (`Id`),
INDEX `IX_ExpiresAt`(`ExpiresAt`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS `{prefix}.published` (
@@ -82,7 +83,8 @@ CREATE TABLE IF NOT EXISTS `{prefix}.published` (
`Added` datetime NOT NULL,
`ExpiresAt` datetime DEFAULT NULL,
`StatusName` varchar(40) NOT NULL,
PRIMARY KEY (`Id`)
PRIMARY KEY (`Id`),
INDEX `IX_ExpiresAt`(`ExpiresAt`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
";
return batchSql;


Cargando…
Cancelar
Guardar