---
title: "Understanding the SCaNN index in AlloyDB"
url: https://daily.dev/posts/understanding-the-scann-index-in-alloydb-rm7yfy9cx
source_url: https://cloud.google.com/blog/products/databases/understanding-the-scann-index-in-alloydb/
type: article
source: "Google Cloud"
published: 2024-04-10T16:02:29.597Z
updated: 2024-05-24T02:13:22.322Z
tags: ["alloydb", "pgvector", "postgresql"]
reading_time: 3
upvotes: 6
comments: 2
language: 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.

# Understanding the SCaNN index in AlloyDB

**[Google Cloud](https://daily.dev/sources/gcp)** · 3 min read · 6 upvotes · 2 comments

## Summary

AlloyDB introduces the new ScaNN index, which brings 12 years of Google research and innovation in approximate nearest neighbor algorithms to AlloyDB. The ScaNN index offers faster vector queries, smaller memory footprint, faster index build times, and higher write throughput compared to the HNSW index in standard PostgreSQL.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://cloud.google.com/blog/products/databases/understanding-the-scann-index-in-alloydb/>

## Community discussion

Top comments from developers on daily.dev.

**@idoshamun** · 0 upvotes

> SCaNN doing its way to AlloyDB is very interesting move by GCP. It's the fastest way to do ANN 😬

**@jameels** · 0 upvotes

> Hey, did some one succeed to run query that use the scann index? I created the index (which took A HUGE TIME to finish!!), and when running any kind of query , it is preferring the full table scan rather than index scan.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#alloydb](https://daily.dev/tags/alloydb), [#pgvector](https://daily.dev/tags/pgvector), [#postgresql](https://daily.dev/tags/postgresql)

[View this post on daily.dev](https://daily.dev/posts/understanding-the-scann-index-in-alloydb-rm7yfy9cx)
