mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-15 17:16:56 +08:00
Updated readme [skip ci]
This commit is contained in:
20
README.md
20
README.md
@@ -469,16 +469,7 @@ VACUUM table_name;
|
|||||||
|
|
||||||
## Monitoring
|
## Monitoring
|
||||||
|
|
||||||
Monitor recall by comparing results from approximate search with exact search.
|
Monitor performance with [pg_stat_statements](https://www.postgresql.org/docs/current/pgstatstatements.html) (be sure to add it to `shared_preload_libraries`).
|
||||||
|
|
||||||
```sql
|
|
||||||
BEGIN;
|
|
||||||
SET LOCAL enable_indexscan = off; -- use exact search
|
|
||||||
SELECT ...
|
|
||||||
COMMIT;
|
|
||||||
```
|
|
||||||
|
|
||||||
Monitor speed with [pg_stat_statements](https://www.postgresql.org/docs/current/pgstatstatements.html) (be sure to add it to `shared_preload_libraries`).
|
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
CREATE EXTENSION pg_stat_statements;
|
CREATE EXTENSION pg_stat_statements;
|
||||||
@@ -494,6 +485,15 @@ SELECT query, calls, ROUND((total_plan_time + total_exec_time) / calls) AS avg_t
|
|||||||
|
|
||||||
Note: Replace `total_plan_time + total_exec_time` with `total_time` for Postgres < 13
|
Note: Replace `total_plan_time + total_exec_time` with `total_time` for Postgres < 13
|
||||||
|
|
||||||
|
Monitor recall by comparing results from approximate search with exact search.
|
||||||
|
|
||||||
|
```sql
|
||||||
|
BEGIN;
|
||||||
|
SET LOCAL enable_indexscan = off; -- use exact search
|
||||||
|
SELECT ...
|
||||||
|
COMMIT;
|
||||||
|
```
|
||||||
|
|
||||||
## Scaling
|
## Scaling
|
||||||
|
|
||||||
Scale pgvector the same way you scale Postgres.
|
Scale pgvector the same way you scale Postgres.
|
||||||
|
|||||||
Reference in New Issue
Block a user