mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-10 06:40:57 +08:00
Moved section [skip ci]
This commit is contained in:
32
README.md
32
README.md
@@ -190,22 +190,6 @@ CREATE INDEX ON items USING hnsw (embedding vector_cosine_ops);
|
|||||||
|
|
||||||
Vectors with up to 2,000 dimensions can be indexed.
|
Vectors with up to 2,000 dimensions can be indexed.
|
||||||
|
|
||||||
### Index Build Time
|
|
||||||
|
|
||||||
Indexes build significantly faster when the graph fits into `maintenance_work_mem`
|
|
||||||
|
|
||||||
```sql
|
|
||||||
SET maintenance_work_mem = '8GB';
|
|
||||||
```
|
|
||||||
|
|
||||||
A notice is shown when the graph no longer fits
|
|
||||||
|
|
||||||
```text
|
|
||||||
NOTICE: hnsw graph no longer fits into maintenance_work_mem after 100000 tuples
|
|
||||||
DETAIL: Building will take significantly more time.
|
|
||||||
HINT: Increase maintenance_work_mem to speed up builds.
|
|
||||||
```
|
|
||||||
|
|
||||||
### Index Options
|
### Index Options
|
||||||
|
|
||||||
Specify HNSW parameters
|
Specify HNSW parameters
|
||||||
@@ -238,6 +222,22 @@ SELECT ...
|
|||||||
COMMIT;
|
COMMIT;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Index Build Time
|
||||||
|
|
||||||
|
Indexes build significantly faster when the graph fits into `maintenance_work_mem`
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SET maintenance_work_mem = '8GB';
|
||||||
|
```
|
||||||
|
|
||||||
|
A notice is shown when the graph no longer fits
|
||||||
|
|
||||||
|
```text
|
||||||
|
NOTICE: hnsw graph no longer fits into maintenance_work_mem after 100000 tuples
|
||||||
|
DETAIL: Building will take significantly more time.
|
||||||
|
HINT: Increase maintenance_work_mem to speed up builds.
|
||||||
|
```
|
||||||
|
|
||||||
### Indexing Progress
|
### Indexing Progress
|
||||||
|
|
||||||
Check [indexing progress](https://www.postgresql.org/docs/current/progress-reporting.html#CREATE-INDEX-PROGRESS-REPORTING) with Postgres 12+
|
Check [indexing progress](https://www.postgresql.org/docs/current/progress-reporting.html#CREATE-INDEX-PROGRESS-REPORTING) with Postgres 12+
|
||||||
|
|||||||
Reference in New Issue
Block a user