Skip to content

Commit b67110d

Browse files
committed
Entities: Added type index to massively improve query speed
1 parent da87012 commit b67110d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/migrations/2025_09_15_132850_create_entities_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function up(): void
1313
{
1414
Schema::create('entities', function (Blueprint $table) {
1515
$table->bigIncrements('id');
16-
$table->string('type', 10);
16+
$table->string('type', 10)->index();
1717
$table->string('name');
1818
$table->string('slug')->index();
1919

0 commit comments

Comments
 (0)