Skip to content

Scrape UUID from event#29

Merged
junievi merged 4 commits intodevelopfrom
scrape-uuid-from-event
Apr 11, 2022
Merged

Scrape UUID from event#29
junievi merged 4 commits intodevelopfrom
scrape-uuid-from-event

Conversation

@junievi
Copy link
Copy Markdown
Contributor

@junievi junievi commented Jan 6, 2022

  • Added logic to api/sql/fetch_latest.sql that appends Curious Data UUID to all events
  • replaced instances of user_pseudo_id and device_advertising_id with uuid
  • updated tests

@junievi junievi requested a review from nandanrao January 6, 2022 23:23
@junievi junievi self-assigned this Jan 6, 2022
}
});
return dedupe;
return Object.values(map);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tried using a set()?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, that works perfectly

@junievi junievi force-pushed the scrape-uuid-from-event branch from dd04b58 to af86fcc Compare January 28, 2022 19:54
@junievi
Copy link
Copy Markdown
Contributor Author

junievi commented Jan 28, 2022

@nandanrao this PR has the removed advertising ID and all tests passing. Ready for your review

});
});
return dedupe;
const set = new Set(rows);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still don't understand the idea behind this. You want to avoid duplicates within batches but not across batches... why? If you want the actual full return to be deduplicated, this won't work. If you don't need that, what's the point of deduplicating it slightly? And doing it on the client can't be more efficient than doing it big query if you're doing the same thing, so I still struggle to understand the optimization.

@junievi junievi merged commit d287a34 into develop Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants