Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 8 lines (6 sloc) 0.324 kB
1d6eaa5 Add indexes to batch scripts.
cgroskopf authored
1 #!/bin/bash
2
3 echo "use census;
4 db.geographies.ensureIndex({ 'geoid': 1 });
ea2427e Modified xref queries to not use .
cgroskopf authored
5 db.geographies.ensureIndex({ 'xrefs.FILEID': 1, 'xrefs.STUSAB': 1, 'xrefs.LOGRECNO': 1 });
81e8fcd Added index to enable sorting geographies by name for lookup tables.
cgroskopf authored
6 db.geographies.ensureIndex({ 'metadata.NAME': 1 });
ea2427e Modified xref queries to not use .
cgroskopf authored
7 db.geographies_2000.ensureIndex({ 'xrefs.FILEID': 1, 'xrefs.STUSAB': 1, 'xrefs.LOGRECNO': 1 });" | mongo
Something went wrong with that request. Please try again.