SShortSingh.
Back to feed

How Location Apps Like Yelp Find Nearby Places Across Millions of Records

0
·1 views

Proximity search in apps like Yelp solves the challenge of efficiently finding nearby locations from tens of millions of data points spread across the globe. Standard database indexes are one-dimensional and cannot handle the two-dimensional nature of geographic proximity, making brute-force distance calculations impractical at scale. A common solution is geohashing, which encodes locations as strings where shared prefixes indicate nearby places, allowing ordinary string indexes to handle spatial queries. Databases like PostgreSQL with PostGIS offer dedicated spatial indexes such as R-trees, which partition space so queries only scan relevant regions. In all approaches, the strategy is the same: use a spatial index to narrow candidates quickly, then compute exact distances and apply filters like ratings or business hours on that smaller set.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Why developers should build architecture-focused projects beyond basic CRUD apps

A developer argues that traditional CRUD-based portfolio projects, while useful for demonstrating fundamentals, often fail to showcase the deeper technical decision-making skills expected of senior engineers. Real-world systems demand knowledge of domain modeling, event-driven architecture, infrastructure as code, CI/CD, and failure handling — none of which are easily demonstrated through a basic login-and-list application. The author redesigned their own public portfolio around smaller but architecturally rich projects, each built to answer a specific technical question rather than simply display a working UI. Each project is scoped to remain maintainable while still covering areas like cloud services, automated testing, observability, and decoupled AI integration. The key argument is that a personal project need not be large to be impressive — it must be intentional, with clear architectural reasoning behind every decision.

0
ProgrammingHacker News ·

Opinion: Using AI Tools Does Not Make You a Lesser Engineer

A software engineer published a personal essay on July 10, 2026, arguing that manually typing Git commands does not make a developer more skilled or professional. The piece challenges the notion that avoiding AI-assisted tools is a mark of engineering competence. The author contends that AI tools can legitimately enhance productivity without diminishing a developer's technical credibility. The post appeared on Hacker News with minimal early engagement, receiving 4 points and no comments at the time of reporting.

0
ProgrammingDEV Community ·

Why Your AI Eval Set Is Probably Too Small to Detect Real Regressions

Small evaluation sets in AI development can create a false sense of progress, as changes that appear meaningful may fall entirely within statistical noise. To reliably detect a drop in pass rate from 0.90 to 0.85 with 80% statistical power, an eval set needs roughly 253 examples. A 50-example set carries only about 35% power, meaning it will miss that regression approximately two out of three times. Most teams implicitly choose effect sizes and let sample sizes be determined by whatever data is available, rather than sizing the study to detect the smallest meaningful change. Experts recommend reporting confidence intervals instead of bare point deltas and using per-criterion binary labels to make eval results more statistically reliable.

How Location Apps Like Yelp Find Nearby Places Across Millions of Records · ShortSingh