We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to follow the flow here.
https://github.com/EverythingMe/geodis/blob/master/geodis/index.py#L228
if not store: redisConn.zunionstore(tmpKey, list(closest)) return redisConn.zrevrange(tmpKey, 0, -1, withscores=True) else: return list(closest)
It looks like if I don't want to store anything, I should pass store=True
store=True
The text was updated successfully, but these errors were encountered:
Thanks, I've written this code so long ago, I'll need to do some diving in, but ACK
Sorry, something went wrong.
My issue was 100's of megabytes of stored keys for lat/lon. I ended up with the following, to avoid the storage.
p = redis.pipeline(False) all_city_ids = set() union_keys = cls._keys['geoname'].getIds(redis, lat=lat, lon=lon, radius=radius, store=True) for union_key in union_keys: p.zrange(union_key, 0, -1) for city_ids in p.execute(): all_city_ids.update(city_ids)
getIds(store=True) returns set names that need to be unioned in memory instead of in redis.
getIds(store=True)
dvirsky
No branches or pull requests
Trying to follow the flow here.
https://github.com/EverythingMe/geodis/blob/master/geodis/index.py#L228
It looks like if I don't want to store anything, I should pass
store=True
The text was updated successfully, but these errors were encountered: