Skip to content

Commit

Permalink
update db structure to include more indexing keys
Browse files Browse the repository at this point in the history
  • Loading branch information
oddmario committed Sep 15, 2024
1 parent 7011b65 commit ff7063e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions db_structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ CREATE TABLE `dns_records` (


ALTER TABLE `dns_records`
ADD PRIMARY KEY (`id`);
ADD PRIMARY KEY (`id`),
ADD KEY `record_name` (`record_name`(768)),
ADD KEY `is_disposable` (`is_disposable`),
ADD KEY `delete_at_timestamp` (`delete_at_timestamp`),
ADD KEY `record_type` (`record_type`(768));


ALTER TABLE `dns_records`
Expand All @@ -33,4 +37,4 @@ COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

0 comments on commit ff7063e

Please sign in to comment.