mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-30 19:41:46 +01:00
2baddd59fb
* perf(events): limit select clause when getting ingest requirements Previously we were pulling in all table columns for every event posted to the `/e/` column. We actually only need the id, such that we can associate an event with a `Team`, and a setting which says if we should anonymize ip addresses. There are still other optimizations to make, and some of the code paths do several queries to the database, but I have limited the changes here to just the most straight forward of them. Refers to https://github.com/PostHog/posthog/issues/8378 * Add a little comment * Filter by team_id * Avoid changing error messages * Update import get_team -> get_ingest_context * Fix typing * fix types * fix mocking * fix type * Rename InjestContext -> EventIngestContext * Update ingestion context fetch methods * Further rename fetch functions |
||
---|---|---|
.. | ||
fixtures | ||
__init__.py | ||
base.py | ||
test_authentication.py | ||
test_capture.py | ||
test_dashboard.py | ||
test_event_definition.py | ||
test_hooks.py | ||
test_license.py | ||
test_organization.py | ||
test_property_definition.py | ||
test_team_memberships.py | ||
test_team.py |