Changeset 368 for trunk/dns-1.0-1.2.sql
- Timestamp:
- 07/26/12 18:18:22 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns-1.0-1.2.sql
r366 r368 27 27 ALTER TABLE domains ALTER COLUMN changed SET DEFAULT true; 28 28 ALTER TABLE domains ALTER COLUMN changed SET NOT NULL; 29 -- ~2x performance boost iff most zones are fed to output from the cache 30 CREATE INDEX dom_status_index ON domains (status); 29 31 30 32 CREATE TABLE revzones ( … … 38 40 changed boolean DEFAULT true NOT NULL 39 41 ); 42 CREATE INDEX rev_status_index ON revzones (status); 40 43 41 44 ALTER TABLE log ADD COLUMN rdns_id INTEGER; … … 49 52 UPDATE records SET rdns_id=0; 50 53 ALTER TABLE records ALTER COLUMN rdns_id SET NOT NULL; 54 -- ~120s -> 75s performance boost on 100K records when always exporting all records 55 CREATE INDEX rec_types_index ON records (type); 56 -- Further ~1/3 performance gain, same dataset 57 CREATE INDEX rec_domain_index ON records (domain_id); 58 CREATE INDEX rec_revzone_index ON records (rdns_id); 51 59 52 60 -- May as well drop and recreate; this is nominally static and loaded from the
Note:
See TracChangeset
for help on using the changeset viewer.