Hello!
I have a web socket push framework with automatic tablet coordinates update. I'm using MariaDB 10.1.
I' ve noticed that if randomly ~200+ concurrent devices try to update their coords, I have an extended table wait lock which by condition would have a very long duration. The result is a very slow performance of the web socket server.
After this experience, I'm looking for another way to store coordinates and retrieve the closest to a point devices.
Is the map or list object proper to do that?
Is a new class with Longitude and Latitude properties (and any other property as filter) a better object for my case?
Is there any fast and reliable algorithm, to get the closest to a point devices?
Thank you in advance!
I have a web socket push framework with automatic tablet coordinates update. I'm using MariaDB 10.1.
I' ve noticed that if randomly ~200+ concurrent devices try to update their coords, I have an extended table wait lock which by condition would have a very long duration. The result is a very slow performance of the web socket server.
After this experience, I'm looking for another way to store coordinates and retrieve the closest to a point devices.
Is the map or list object proper to do that?
Is a new class with Longitude and Latitude properties (and any other property as filter) a better object for my case?
Is there any fast and reliable algorithm, to get the closest to a point devices?
Thank you in advance!