Closed Bug 1443359 Opened 8 years ago Closed 5 years ago

Write a query for entity resolved DAU count on main_summary

Categories

(Data Platform and Tools :: General, enhancement, P3)

enhancement
Points:
1

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: amiyaguchi, Assigned: akomar)

References

Details

The current method of counting daily active users (DAU) does not take into account duplicate profiles.[1] There are some profiles that are cloned across many machines that do not necessarily represent the same user/entity. There are instances of the total ping count per client per day that are much above the average of 3-4 subsessions a day.[2] With the addition of "subsession_id", "previous_session_id", and "previous_subsession_id" in bug 1424564, duplicated profiles can be resolved to separate entities. One way of de-duplicating is to recursively self joining main summary MS on the condition (MS.client_id = MS.client_id AND MS.previous_subsession_id = MS.subsession_id) until all session and subsessions for each client_id are linked for a day. It would be nice to compare the resolved DAU count with the standard DAU count to understand the extent of profile copying. [1] https://docs.google.com/document/d/1Fdq2uq5W2M4iesROcq3v5yYYFdLDzYOxjR-SxK3CYZ4/edit [2] https://sql.telemetry.mozilla.org/queries/51848/source
Assignee: nobody → akomarzewski
Looks like the trick with just counting records having subsession_count=1 won't work because of multiple sessions per client. However, I found interesting relationship - on a given day, clients that sent more than 40 pings had average subsession shorter ~2.5x than "regular" ones. [1] I'll continue with original approach and try treating subsessions as a graph. Another thing worth checking - can some of these "heavy" clients be result of some automated testing on our side? [1] https://dbc-caf9527b-e073.cloud.databricks.com/#notebook/7766/
It's hard to say what the source of activity is. There are two other things that could be cross-validated to see if there is parallel activity going on. If there are overlapping intervals of `subsession_start_date` and `session_length` across a single client, there is a possibility of cloned profiles. In addition, the total sum of `session_length` should be less or equal to the number of seconds in a day. One thing to keep in mind is that the `subsession_start_date` is in the client's local time. There is a useful document and dashboard that might be useful if you end up working in client time.[1][2] [1] https://docs.google.com/document/d/1_4szwRs4RGeKhkvlIFCHFNJgp9hQ30iAZGoiArtaVDU/edit# [2] https://sql.telemetry.mozilla.org/dashboard/telemetry-health
Priority: -- → P1
Priority: P1 → P2
Priority: P2 → P3
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
Component: Datasets: Main Summary → General
You need to log in before you can comment on or make changes to this bug.