mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-05 01:01:30 +02:00
Work on dashboard speed
This commit is contained in:
parent
f61672d691
commit
347e20757a
4 changed files with 29 additions and 18 deletions
|
@ -934,6 +934,10 @@ INSERT INTO `registry`.`settings` (`name`, `value`) VALUES
|
|||
('rdap_server', 'https://rdap.example.com'),
|
||||
('currency', 'USD');
|
||||
|
||||
CREATE INDEX idx_domain_crdate ON domain (crdate DESC);
|
||||
CREATE INDEX idx_domain_exdate ON domain (exdate);
|
||||
CREATE INDEX idx_support_tickets_date_created ON support_tickets (date_created);
|
||||
|
||||
CREATE DATABASE IF NOT EXISTS `registryTransaction`;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `registryTransaction`.`transaction_identifier` (
|
||||
|
|
|
@ -912,4 +912,8 @@ ALTER TABLE premium_domain_pricing ADD FOREIGN KEY ("category_id") REFERENCES pr
|
|||
ALTER TABLE support_tickets ADD FOREIGN KEY ("user_id") REFERENCES users(id);
|
||||
ALTER TABLE users_audit ADD FOREIGN KEY ("user_id") REFERENCES users(id);
|
||||
ALTER TABLE support_tickets ADD FOREIGN KEY ("category_id") REFERENCES ticket_categories(id);
|
||||
ALTER TABLE ticket_responses ADD FOREIGN KEY ("ticket_id") REFERENCES support_tickets(id);
|
||||
ALTER TABLE ticket_responses ADD FOREIGN KEY ("ticket_id") REFERENCES support_tickets(id);
|
||||
|
||||
CREATE INDEX idx_domain_crdate ON domain (crdate DESC);
|
||||
CREATE INDEX idx_domain_exdate ON domain (exdate);
|
||||
CREATE INDEX idx_support_tickets_date_created ON support_tickets (date_created);
|
|
@ -375,6 +375,9 @@ CREATE TABLE IF NOT EXISTS domain (
|
|||
FOREIGN KEY (acid) REFERENCES registrar(id),
|
||||
FOREIGN KEY (tldid) REFERENCES domain_tld(id)
|
||||
);
|
||||
CREATE INDEX idx_domain_crdate ON domain (crdate);
|
||||
CREATE INDEX idx_domain_exdate ON domain (exdate);
|
||||
CREATE INDEX idx_support_tickets_date_created ON support_tickets (date_created);
|
||||
|
||||
-- application
|
||||
CREATE TABLE IF NOT EXISTS application (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue