PostHog's RSS Feed

Karpathy's Autoresearch found a 3-year-old bug in Posthog's query engine (and improved performance by 11%) (9 minute read) (opens in new tab)

Posthog pointed an AI agent at its query agent, fed it slow queries from production, and let it run overnight. The next morning, the team discovered that for almost three years, every query with a timestamp filter had not been using ClickHouse's primary key correctly. Fixing the issue cut the number of granules ClickHouse had to scan by 62% on the benchmark query and made the query itself meaningfully faster. This post discusses the team's setup, the bug itself, and PostHog's plans to automat...

Read the original article
Sign in to keep reading the full article.

Covered in 1 article

tldr.tech·
Feeds

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help