RoverPlatform / rover-campaigns-android

Apache License 2.0
1 stars 0 forks source link

Too many location update events #52

Closed chrisrecalis closed 5 years ago

chrisrecalis commented 5 years ago

Receiving too many location update events from Android devices. It looks like the refresh interval was set super low to 1 millisecond.

Example for 1 day of events:

Os Name Total Unique Devices
iOS 314,762 11,171
Android 1,351,891 12,030

Also receiving a large number of duplicate coordinates. Meaning we are tracking a Location Update when the device hasn't moved:

Os Name Duplicates
Android 35,777,041

I think we can bump this number up to minimum refresh interval of 1 min and a refresh interval of 60 mins as per suggestion in https://developers.google.com/android/reference/com/google/android/gms/location/LocationRequest

orospakr commented 5 years ago

@chrisrecalis is this a recent problem? We didn't touch anything to do with the location subsystem. can you identify which SDK versions are to blame?

(I know we fixed an issue like this a year ago, but I assume this is a different case?)

samwoodall commented 5 years ago

I had a conversation on slack with Chris regarding this issue.

Chris: Doesn't seems to be a specific sdk version

Breakdown by version: https://docs.google.com/spreadsheets/d/1yIUR8aDvJ8cj8Sw63sTQGFtQ6F5dXHX_f5R-P65971Y/edit#gid=2106354504

Partial list of affected devices. I can't seem to find any relationship between them

model,total,uniq,ratio
Galaxy Grand Prime,1750,5,350.0
Z981,1424,13,109.53846153846153
Galaxy J7,581,5,116.2
E6810,3347,6,557.83333333333337
Moto e5 play,5350,46,116.30434782608695
Moto e5,271,2,135.5
Mate 9,295,2,147.5
5054N,1414,1,1414.0
CLT-L29,492,5,98.4
Z957,188,1,188.0
LM-G710VM,3108,28,111.0
Z719DL,179,1,179.0
G9,132,1,132.0
ASUS_P00J,752,2,376.0
Galaxy S8,71062,781,90.988476312419976
LG-M322,216,1,216.0
XT1635-01,3367,18,187.05555555555554
5049Z,2929,12,244.08333333333334
SM-N900T,458,5,91.6
ONEPLUS A6000,175,2,87.5
RNE-L03,179,2,89.5
SM-J320V,1979,12,164.91666666666666
BBA100-2,480,1,480.0
LGL157BL,494,2,247.0
Galaxy On5,776,5,155.2
SM-G970U1,668,7,95.428571428571431
Moto g(6),4617,43,107.37209302325581
Moto E (4),6184,26,237.84615384615384
VS501,3857,14,275.5
SM-A605GN,657,4,164.25
LG-K425,643,3,214.33333333333334
HTC Desire 530,318,2,159.0
ASUS_A006,514,3,171.33333333333334
LG-M710,102,1,102.0
Z958,213,1,213.0
LG-V520,389,2,194.5
QTASUN1,476,3,158.66666666666666
LGL163BL,102,1,102.0
KFSUWI,1188,3,396.0
Pixel 3a,2645,21,125.95238095238095
LG-M470,398,1,398.0
Coolpad 3622A,83,1,83.0
Redmi Note 6 Pro,247,2,123.5
BLN-L24,385,3,128.33333333333334
LG-Q710AL,4506,49,91.959183673469383
SM-G975U,50462,451,111.88913525498891
BBB100-3,557,1,557.0
Nami,164,1,164.0
LG-M153,3305,13,254.23076923076923
LG-M327,2643,14,188.78571428571428
E6790TM,401,1,401.0
XT1049,133,1,133.0
Galaxy S9+,90297,879,102.72696245733789
SM-J327P,1408,16,88.0
C6743,798,1,798.0
SM-J337T,910,11,82.727272727272734
VS996,2328,18,129.33333333333334
SM-J700T1,635,6,105.83333333333333
MYA-L13,108,1,108.0
Moto z3,9909,83,119.3855421686747
I3113,208,2,104.0
F5121,226,2,113.0
W-U300,135,1,135.0
831C,169,1,169.0
LG-M257,1895,3,631.66666666666663
SM-G977P,531,1,531.0
LG-G710,2164,23,94.086956521739125
Galaxy Note8,75546,777,97.227799227799224
LG-LS997,2700,13,207.69230769230768
Z983,2856,8,357.0
E6603,332,1,332.0
Pixel 2,14321,121,118.35537190082644
Moto E (4) Plus,2999,5,599.8
Moto G (5S) Plus,266,2,133.0
LGLS675,606,1,606.0
SM-N960U,77950,756,103.10846560846561
Coolpad 3632A,397,4,99.25
Moto e5 plus,3641,32,113.78125
XT1585,8717,21,415.09523809523807
Moto e5 cruise,2950,29,101.72413793103448
Z851M,515,3,171.66666666666666
LG-H900,1167,5,233.4
LM-Q710.FG,5075,31,163.70967741935485
SM-G977U,2912,16,182.0
F8331,569,5,113.8
XT1565,777,4,194.25
Moto Z (2),10835,81,133.76543209876544
SO-01L,81,1,81.0
SAMSUNG-SM-T337A,1133,6,188.83333333333334
LM-X410(FG),8349,62,134.66129032258064
SM-J337A,975,11,88.63636363636364
LM-X410.FG,457,5,91.4
Moto G (4),3083,17,181.35294117647058
BBF100-2,284,3,94.666666666666671
KYOCERA-E6790,100,1,100.0
PH-1,667,7,95.285714285714292
GM1917,337,4,84.25
Phone 2,352,3,117.33333333333333
LG-K330,99,1,99.0
Pixel 3,16564,130,127.41538461538461
MYA-L03,129,1,129.0
Cp3636a,269,2,134.5
VS880PP,798,2,399.0
SM-A505FN,335,3,111.66666666666667
SM-A305G,81,1,81.0
SM-A305F,131,1,131.0
ATU-L21,356,1,356.0
F-02G,1225,1,1225.0
BBB100-1,646,5,129.2
LM-X210CM,1407,17,82.764705882352942
N9519,210,1,210.0
SM-N900P,127,1,127.0
Z557BL,215,1,215.0
STV100-1,173,1,173.0
Pixel,3916,41,95.512195121951223
Moto x4,1915,18,106.38888888888889
SM-N960U1,3556,32,111.125
Galaxy S4,785,3,261.66666666666669
STV100-2,447,2,223.5
SNE-LX1,124,1,124.0
LGMP260,20306,78,260.33333333333331
SM-J260A,548,3,182.66666666666666
LG-K540,480,5,96.0
LM-Q710(FGN),18939,132,143.47727272727272
Moto e5 go,91,1,91.0
LG G3,279,1,279.0
LG-LS998,3905,24,162.70833333333334
LG-M700,258,3,86.0
SM-G973U,20386,229,89.021834061135365
Z837VL,107,1,107.0
LGMP450,5458,26,209.92307692307693
Z982,3900,16,243.75
LGLS775,1090,9,121.11111111111111
Galaxy Note Edge,155,1,155.0
Pixel 3 XL,23913,158,151.34810126582278
LGMS428,1064,4,266.0
SM-J510MN,92,1,92.0
HTC Desire 550,102,1,102.0
XT1609,182,1,182.0
LG-M430,653,6,108.83333333333333
Pixel 2 XL,24362,209,116.56459330143541
HUAWEI RIO-L01,112,1,112.0
Moto g(6) plus,429,5,85.8
KYV41,85,1,85.0
Xperia Z3,514,1,514.0
SM-A205U,1755,20,87.75
Galaxy J1,350,2,175.0
Moto g(7) supra,1754,9,194.88888888888889
LM-V405,5681,49,115.93877551020408
KYOCERA-E6820,239,2,119.5
Moto g(7),258,3,86.0
5049W,2343,13,180.23076923076923
Z558VL,282,1,282.0