Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(database): remove unused index on folders #79

Merged
merged 1 commit into from
Jun 23, 2024

Conversation

tericcabrel
Copy link
Owner

No description provided.

@tericcabrel tericcabrel self-assigned this Jun 23, 2024
Copy link
Contributor

Deploy request opened: https://app.planetscale.com/teco/core-db/deploy-requests/10

When adding to the schema, the Deploy Request must be run before the code is deployed.
Please ensure your schema changes are compatible with the application code currently running in production.

  1. Successfully run the Deploy Request
  2. Deploy this PR
 CREATE TABLE `folders` (
 	`id` varchar(50) NOT NULL,
 	`user_id` varchar(50) NOT NULL,
 	`parent_id` varchar(191),
 	`name` varchar(255) NOT NULL,
 	`created_at` datetime(3) NOT NULL DEFAULT current_timestamp(3),
 	`updated_at` datetime(3) NOT NULL,
 	`path` text,
 	`category` enum('visible', 'favorite', 'archived', 'hidden') NOT NULL DEFAULT 'visible',
 	PRIMARY KEY (`id`),
 	UNIQUE KEY `folders_user_id_parent_id_name_key` (`user_id`, `parent_id`, `name`),
 	KEY `folders_name_idx` (`name`),
-	KEY `folders_user_id_idx` (`user_id`),
 	KEY `folders_parent_id_idx` (`parent_id`),
 	KEY `folders_category_idx` (`category`)
 ) ENGINE InnoDB,
   CHARSET utf8mb4,
   COLLATE utf8mb4_unicode_ci;

@tericcabrel tericcabrel merged commit 2244243 into main Jun 23, 2024
5 checks passed
@tericcabrel tericcabrel deleted the remove-folder-index branch June 23, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant