Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting an error when trying to create index on cube array with 512 dimension #1

Open
alibi123 opened this issue Aug 2, 2019 · 0 comments

Comments

@alibi123
Copy link

alibi123 commented Aug 2, 2019

I tried to use the snippet from this https://dba.stackexchange.com/posts/163915/revisions answer, where I saw your comment about this image. I tried to create 5000 entries with 512 dimensional vector, but I am getting the following error ERROR: failed to add item to index page in "mytable" SQL state: XX000 Have you tested it with such vectors with such dimensions?

Here's the query

CREATE TABLE mytable
AS
  SELECT i, cube(array_agg(random()::float)) AS c
  FROM generate_series(1,5000) AS i
  CROSS JOIN LATERAL generate_series(1,512)
    AS x
  GROUP BY i;

CREATE INDEX ON mytable USING gist ( c );
ANALYZE mytable;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant