I'm logging to mysql the capacity of 23 parking lots.
The log gets very huge...
For a simple example this is the mysql structure:
park_lot_id, current_level, status
The only time a new entry is made, is if the current_level has changed.
The only way I know to get the last entry for each parking lot is to build an array for each parking lot and extract the last entry by counting the array....
Because the log is so huge...
Is there a better way to select the last entry for each parking lot?
Thanks...