---
title: "Teaching the Old Dog a New Trick"
description: "Vinted moved per-user ranking cross-features from Redis into Vespa, then hit p99+ latency spikes above 100 ms after feeding bursts (500M+ updates/hour across 50+ schemas) because data redistribution broke the second-phase document summary fetch (.fill()), causing retries across content nodes."
url: "https://swe.quest/articles/teaching-the-old-dog-a-new-trick-a54b14a78d3029d2"
canonical: "https://vinted.engineering//2025/11/06/vespa-match-features/"
source: "Vinted Engineering"
published: "2025-11-06"
difficulty: "hard"
kind: "Case study"
reading_minutes: 6
tags: ["search","performance","distributed-databases","open-source"]
---

# Teaching the Old Dog a New Trick

A post on [Vinted Engineering](https://swe.quest/sources/vinted.md), published 2025-11-06, 6 min read, Case study. Original: [https://vinted.engineering//2025/11/06/vespa-match-features/](https://vinted.engineering//2025/11/06/vespa-match-features/)

## Summary

Vinted moved per-user ranking cross-features from Redis into Vespa, then hit p99+ latency spikes above 100 ms after feeding bursts (500M+ updates/hour across 50+ schemas) because data redistribution broke the second-phase document summary fetch (.fill()), causing retries across content nodes. The fix encodes all needed fields as match-features, turning strings into mapped tensors via tensorFromLabels, and selects only matchfeatures. A Vespa contribution (8.596.7) then lets the query skip summary fetching entirely, removing a network round-trip. p99 dropped from ~9 ms to ~3 ms with no spikes during redistribution, and mean latency is ~430 µs at 7.5k RPS per container node.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Search](https://swe.quest/tags/search.md) (Backend & APIs)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Distributed databases](https://swe.quest/tags/distributed-databases.md) (Data & databases)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- Vespa query execution
- ranking profiles and tensors ([easy posts on Recommendations & ranking](https://swe.quest/tags/recommendation-systems.md?difficulty=easy))
- scatter-gather search ([easy posts on Search](https://swe.quest/tags/search.md?difficulty=easy))

## Keywords

Vespa, match-features, Redis, tensorFromLabels, ZGC

## Related posts

- [The search for speed in Figma](https://swe.quest/articles/the-search-for-speed-in-figma-06e4c11289fe0686.md): Figma · 2024-10-10 · Medium · 11 min read · Search, Performance engineering, Observability, Cost optimization, Cloud platforms
  Figma's search slowness traced mostly to its own stack, not OpenSearch: OpenSearch's headline 8 ms metric was per-shard time, and only the "took" field in responses reveals overall query latency, which accounted for under 30% of API time.
- [How Vinted Serves Personalised Search Autocomplete](https://swe.quest/articles/how-vinted-serves-personalised-search-autocomplete-60df7b0a636c3d2b.md): Vinted Engineering · 2026-04-22 · Medium · 22 min read · Search, Recommendations & ranking, Performance engineering, System design
  Vinted's autocomplete service runs on Vespa and serves 4,700 queries per second at 31 ms P99 over a pool of 125 million suggestions across 50+ country-language markets.
- [How we selected the next vector database at Booking.com](https://swe.quest/articles/how-we-selected-the-next-vector-database-at-booking-com-464edc602538488f.md): Booking.com Data Science · 2026-08-11 · Medium · 8 min read · Vector search, Performance engineering, RAG & retrieval, ML platforms, Cost optimization
  Booking.com replaced its OpenSearch-backed internal Embedding Service with Weaviate after running its own production-shaped benchmark instead of trusting public comparisons.
- [Cutting Threads’ send latency in half](https://swe.quest/articles/cutting-threads-send-latency-in-half-8bdebcb999eebcc4.md): Meta Engineering · 2021-03-22 · Medium · 4 min read · Performance engineering, Caching, Load balancing, Distributed systems
  Instagram's Threads messaging app cut media send latency in half, partly by fixing a "configure" endpoint that ran four times slower in one region.
- [What really matters for performance: lessons from a year of benchmarks](https://swe.quest/articles/what-really-matters-for-performance-lessons-from-a-year-of-benchmarks-0ec8700c872ad4a4.md): ClickHouse · 2025-12-22 · Easy · 7 min read · Analytics & OLAP, Performance engineering, Caching, Databases
  Six ClickHouse benchmarks from 2025 point to one conclusion: performance depends on how efficiently an engine moves data end-to-end.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
