Skip to content

How to control memory usage during CREATE INDEX? #227

@rebasedming

Description

@rebasedming

What happened?

When creating an index over 1B+ records I'm seeing memory usage increase linearly, seemingly unbounded. Is this expected/is there a way to control memory usage?

pgvectorscale extension affected

No response

PostgreSQL version used

17.4

What operating system did you use?

Ubuntu 24.04

What installation method did you use?

Docker

What platform did you run on?

On prem/Self-hosted

Relevant log output and stack trace

How can we reproduce the bug?

Run `CREATE INDEX` over a very large corpus of vectors and monitor the memory consumption.

Are you going to work on the bugfix?

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions