-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
794 additions
and
1,401 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
-- Create building indexes after bulk loading | ||
|
||
-- Building index over UPRNs (given a building, find UPRNs) | ||
CREATE INDEX IF NOT EXISTS uprn_building_idx ON building_properties ( building_id ); | ||
--CREATE INDEX IF NOT EXISTS uprn_building_idx ON building_properties ( building_id ); | ||
|
||
-- UPRN index (given a UPRN, find buildings or parents) | ||
CREATE INDEX IF NOT EXISTS uprn_uprn_idx ON building_properties ( uprn ); | ||
--CREATE INDEX IF NOT EXISTS uprn_uprn_idx ON building_properties ( uprn ); | ||
|
||
-- Parent index over UPRNs (given a UPRN, find children) | ||
CREATE INDEX IF NOT EXISTS uprn_parent_idx ON building_properties ( parent_uprn ); | ||
--CREATE INDEX IF NOT EXISTS uprn_parent_idx ON building_properties ( parent_uprn ); | ||
|
||
-- TOID index over buildings | ||
CREATE INDEX IF NOT EXISTS building_toid_idx ON buildings ( ref_toid ); | ||
--CREATE INDEX IF NOT EXISTS building_toid_idx ON buildings ( ref_toid ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.