somnathrakshit / geograpy3

Extract place names from a URL or text, and add context to those names -- for example distinguishing between a country, region or city.
https://geograpy3.readthedocs.io
Apache License 2.0
124 stars 12 forks source link

Improve performance by avoiding ORM loading of all data #53

Closed WolfgangFahl closed 2 years ago

WolfgangFahl commented 3 years ago

Is your feature request related to a problem? Please describe. Loading the LocationContext as objects in to main memory currently takes 4 seconds which is completly unnecessary for most usecases where only a few lookups are needed

Describe the solution you'd like Allow for lazy loading via properties and lookup without using hashtables as the solution was a few weeks ago using SQLite access.