<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/updating-a-vector-database-is-no-simple-thing-kqsevi2pf" -->

---
title: Updating a vector database is no simple thing | daily.dev
description: Vector databases built on Hierarchical Navigable Small World (HNSW) graphs handle updates as delete-then-insert operations rather than in-place edits, since...
canonical: https://daily.dev/posts/updating-a-vector-database-is-no-simple-thing-kqsevi2pf
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Updating a vector database is no simple thing | daily.dev
og:description: Vector databases built on Hierarchical Navigable Small World (HNSW) graphs handle updates as delete-then-insert operations rather than in-place edits, since...
og:url: https://daily.dev/posts/updating-a-vector-database-is-no-simple-thing-kqsevi2pf
og:image: https://api.daily.dev/og/posts/kQseVi2Pf.png
og:image:alt: Updating a vector database is no simple thing
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Updating a vector database is no simple thing

**[Software Doug](https://daily.dev/sources/softwaredoug)** · 7 min read · 2 upvotes · 0 comments

## Summary

Vector databases built on Hierarchical Navigable Small World (HNSW) graphs handle updates as delete-then-insert operations rather than in-place edits, since removing a node would break graph navigability. Most systems (Lucene-based engines like Elasticsearch) mark old vectors as tombstoned and route new inserts into fresh graph segments that are periodically merged, trading commit frequency for query latency (a 48K-doc benchmark showed committing every 1000 vectors costs 0.064s query latency versus 0.0018s at 50,000). Vespa and Weaviate are called out as exceptions that maintain a single mutable graph instead of parallel segments. The piece argues buyers should shadow-test vector databases against real production write traffic rather than trust static benchmarks, and get close to vendor engineering teams to understand these tradeoffs.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <http://softwaredoug.com/blog/2026/08/18/update-graph-vector-db.html>

## Questions this post answers

### How does HNSW handle updates when a vector changes in a vector database?

Most HNSW implementations treat an update as an upsert: a delete followed by a new insertion. Rather than repairing the graph in place, the old node is tombstoned (marked deleted but left in the graph so navigation still works), while the new vector is inserted into a separate, newly built segment graph. Query time then searches across multiple segment graphs in parallel until they eventually get merged.

_daily.dev surfaces engineering deep dives like this for teams weighing vector database tradeoffs before production._

### Which vector databases maintain a single HNSW graph instead of using segmented graphs?

Vespa maintains a single logical graph and supports concurrent updates and queries against it directly. Weaviate also maintains a single graph, using tombstones for deletes rather than building parallel segments. In contrast, Lucene-based systems like Elasticsearch build new segment graphs for inserts and merge them later, while QDrant and Milvus use a separate mutable, non-graph structure for new inserts alongside longer-lived immutable graphs.

_Compare vector database internals like these on daily.dev when picking a search backend for production writes._

### How much does commit frequency affect query latency in a Lucene-based vector search index under write load?

In a benchmark on a 48K document index, committing every 1000 vectors produced a query latency of about 0.0637 seconds, while committing every 50,000 vectors dropped latency to about 0.0018 seconds. This illustrates the tradeoff between how quickly newly written vectors become searchable and overall query performance under sustained write load.

_Track write-versus-latency tradeoffs like these on daily.dev before tuning a vector search deployment._

## Similar posts on daily.dev

- [Vector search database: news & 2026 guide](https://daily.dev/posts/vector-search-database-news-2026-guide-jn2fx26te) · Redis · 0 upvotes · 0 comments
- [Your AI doesn’t need another database](https://daily.dev/posts/your-ai-doesn-t-need-another-database-lbt3nhuw8) · InfoWorld · 0 upvotes · 0 comments
- [When \(Not\) to Use Vector DB](https://daily.dev/posts/when-not-to-use-vector-db-mrm6anluk) · Towards Data Science · 2 upvotes · 0 comments
- [Vector Database Comparison 2026: Pinecone vs Weaviate vs Qdrant vs OpenSearch](https://daily.dev/posts/vector-database-comparison-2026-pinecone-vs-weaviate-vs-qdrant-vs-opensearch-ufform1ua) · BigData Boutique blog · 33 upvotes · 10 comments
- [Vector Databases Explained in 3 Levels of Difficulty](https://daily.dev/posts/vector-databases-explained-in-3-levels-of-difficulty-pg3waxjnd) · Machine Learning Mastery · 4 upvotes · 0 comments

---

Tags: [#backend](https://daily.dev/tags/backend), [#elk](https://daily.dev/tags/elk), [#vector-search](https://daily.dev/tags/vector-search)

[View this post on daily.dev](https://daily.dev/posts/updating-a-vector-database-is-no-simple-thing-kqsevi2pf)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Updating a vector database is no simple thing","url":"https://daily.dev/posts/updating-a-vector-database-is-no-simple-thing-kqsevi2pf","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/updating-a-vector-database-is-no-simple-thing-kqsevi2pf"},"datePublished":"2026-08-27T15:29:01.394Z","dateModified":"2026-09-13T21:48:31.918Z","description":"Vector databases built on Hierarchical Navigable Small World (HNSW) graphs handle updates as delete-then-insert operations rather than in-place edits, since...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/12fe8c43eef28557e6631b203bdf3713?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/12fe8c43eef28557e6631b203bdf3713?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Software Doug","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Software Doug","logo":"https://media.daily.dev/image/upload/s--i8zvexsI--/f_auto,q_auto/v1774514120/logos/softwaredoug?_a=BAMAMiWQ0","url":"https://daily.dev/sources/softwaredoug"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/updating-a-vector-database-is-no-simple-thing-kqsevi2pf","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"backend,elk,vector-search","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Software Doug","item":"https://daily.dev/sources/softwaredoug"},{"@type":"ListItem","position":3,"name":"Updating a vector database is no simple thing"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/updating-a-vector-database-is-no-simple-thing-kqsevi2pf#faq","mainEntity":[{"@type":"Question","name":"How does HNSW handle updates when a vector changes in a vector database?","acceptedAnswer":{"@type":"Answer","text":"Most HNSW implementations treat an update as an upsert: a delete followed by a new insertion. Rather than repairing the graph in place, the old node is tombstoned (marked deleted but left in the graph so navigation still works), while the new vector is inserted into a separate, newly built segment graph. Query time then searches across multiple segment graphs in parallel until they eventually get merged. daily.dev surfaces engineering deep dives like this for teams weighing vector database tradeoffs before production."}},{"@type":"Question","name":"Which vector databases maintain a single HNSW graph instead of using segmented graphs?","acceptedAnswer":{"@type":"Answer","text":"Vespa maintains a single logical graph and supports concurrent updates and queries against it directly. Weaviate also maintains a single graph, using tombstones for deletes rather than building parallel segments. In contrast, Lucene-based systems like Elasticsearch build new segment graphs for inserts and merge them later, while QDrant and Milvus use a separate mutable, non-graph structure for new inserts alongside longer-lived immutable graphs. Compare vector database internals like these on daily.dev when picking a search backend for production writes."}},{"@type":"Question","name":"How much does commit frequency affect query latency in a Lucene-based vector search index under write load?","acceptedAnswer":{"@type":"Answer","text":"In a benchmark on a 48K document index, committing every 1000 vectors produced a query latency of about 0.0637 seconds, while committing every 50,000 vectors dropped latency to about 0.0018 seconds. This illustrates the tradeoff between how quickly newly written vectors become searchable and overall query performance under sustained write load. Track write-versus-latency tradeoffs like these on daily.dev before tuning a vector search deployment."}}]}
```

