Skip to content

Data Leak and Extra Logging #23

@surfrock66

Description

@surfrock66

Diagnosing an issue. I noticed my UI got super slow, so I started looking at the dataset. I was considering splitting raw_logs into new tables by year just to improve lookup speed, when I noticed something...Here's the number of raw_logs per year:

  • 2014: 112,093
  • 2015: 781,507
  • 2016: 1,215,115
  • 2017: 13,541,123
  • 2018 (as of January 15): 1,028,641

Looking at a sample track, there's a clear issue:

image

So, it seems that there is an issue ending tracks. If I export the same track from the torque trip in the app, it's a csv with just the correct information.

I'm going to peruse the apache logs to see what the data upload looks like and see why the track is continuously logging despite CLEARLY being done. Also I'm gonna come up with some sort of delete command which will purge logs where the car is clearly off, stopped, and in the same location for more than, say, 30 seconds. I would hate to have to write a daemon for that, but if I can't find a root cause that may be the right solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions