https://github.com/globalpolicy/voterlist-extractor
Simple script to extract into a database the names of registered voters from the website of the Election Commission of Nepal
https://github.com/globalpolicy/voterlist-extractor
Last synced: about 1 month ago
JSON representation
Simple script to extract into a database the names of registered voters from the website of the Election Commission of Nepal
- Host: GitHub
- URL: https://github.com/globalpolicy/voterlist-extractor
- Owner: globalpolicy
- License: mit
- Created: 2017-11-09T06:28:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-11T02:50:31.000Z (over 7 years ago)
- Last Synced: 2025-02-12T11:53:19.052Z (3 months ago)
- Language: Python
- Size: 286 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# voterlist-extractor
Simple script to extract into a database the names of registered voters from the website of the Election Commission of Nepal
Tips for querying the large database(~ 5 GB) that will be spit out by the script:
+Create indices for the columns you will be querying before running the actual queries on those columns.
E.g. CREATE INDEX IDX_VoterName ON AllVoters (VoterName)
+Test how the SQLite query engine is going to execute your query by prefixing the query with EXPLAIN QUERY PLAN
-Avoid table scan at all costs as they can take tens of minutes, try to use indexes you've created for any query and if your query doesn't include the indexed column, index it right away and then run query on it
+If the SQLite query engine doesn't seem to be planning to use the indexes you've created(verify using EXPLAIN QUERY PLAN), you can force the use of indexes by appending ORDER BY SomeColumnName to a query provided the column SomeColumnName has a related index