Safe2COVIDApp / bct-server

Bluetooth Contact Tracing for Covid19 - server
5 stars 1 forks source link

Refactor: ID and Spatial storage #61

Closed mitra42 closed 4 years ago

mitra42 commented 4 years ago

On discussion it was felt ... Move some of the functionality onto the ContactDict object Move the UpdateTokenIdIdx into ContactDict, and interact with it via methods of ContactDict Similarly Move the UpdateTokenGeoIdx into SpatialIndex, and interact with it via methods of SpatialIndex

Available for Dan or me to pick up - probably Dan

danaronson commented 4 years ago

I'm actually doing this to include NOT storing the geo object in the rtree database, but storing it also on disk in the same manner that the contacts are stored. There is some good refactoring to do here. I'm also using a python shelf object and sortedlist from the collections library to make everything more efficient.