Skip to content

Commit cd45c26

Browse files
Update finding-a-gap-in-timeseries-data-and-or-gaps-and-islands-using-sql.md
1 parent 76464fc commit cd45c26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

finding-a-gap-in-timeseries-data-and-or-gaps-and-islands-using-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Finding a Gap in Timeseries data and / or Gaps-and-Islands using SQL
22

3-
A common problem in analyzing a Log data from applications is to create sessions from logged user activity. A user may use the app for couple of hours in day and then come back to it the next day. The log will register the user activity, but the logs will not tell us when the session end for the day, and a new session started the next day. Typically a sessions are based on _m_ minutes of activity and _n_ minutes of no activity. _n_ could be minutes, for example. This is also known as [Gaps-and-Islands](sessionization.md) problem in Computer Science.
3+
A common problem in analyzing a Log data from applications is to create sessions from logged user activity. A user may use the app for couple of hours in day and then come back to it the next day. The log will register the user activity, but the logs will not tell us when the session ended for the day, and a new session started the next day. Typically a sessions are based on _m_ minutes of activity followed by _n_ minutes of no activity. _n_ could be 10 minutes, for example. This is also known as [Gaps-and-Islands](sessionization.md) problem in Computer Science.
44

55
## Sample log data
66

@@ -34,7 +34,7 @@ From the above App Log, let's say we need to display
3434
2. begin_timestamp (begin of the session)
3535
3. end_timestamp (end of the session)
3636

37-
We will define the _session_ to be 10 mins i.e. If there is no activity for 10 minutes, the session should be considered as ended.
37+
We will define the _end of a session_ to be 10+ minutes i.e. If there is no activity for more than 10 minutes, the session should be considered as ended.
3838

3939
### MATCH_RECOGNIZE Query to create sessions
4040

0 commit comments

Comments
 (0)