Skip to content

Adding docs for matviews indexing#231

Merged
javier merged 4 commits intomainfrom
jv/alter_matview_add_index
Sep 3, 2025
Merged

Adding docs for matviews indexing#231
javier merged 4 commits intomainfrom
jv/alter_matview_add_index

Conversation

@javier
Copy link
Copy Markdown
Contributor

@javier javier commented Sep 2, 2025

Added docs pages for alter matview.. add index/drop index, related to questdb/questdb#5961
Changed concept pages for indices and matviews
Sorted the left sidebar slightly, as it was out of alphabetical order for some SQL subsections.

description: ADD INDEX SQL keyword. Materialized Views reference documentation.
---

Indexes an existing [`symbol`](/docs/concept/symbol/) column. Index capacity can be specified manually;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I'd remove the second sentence: index capacity is not something we want users to change, also they usually confuse it with symbol table capacity.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But we do have syntax for it, so I guess we should document it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed this with the section about index capacity on index page and removing example


:::note

[Backup your database](/docs/operations/backup/) to avoid unintended data loss.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we expect index drop to lead to data loss?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't. This is copy/paste from the alter table drop index page. I can remove it from both if you think it is safe?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the note from both pages

@javier javier merged commit 5b6528f into main Sep 3, 2025
3 checks passed
@javier javier deleted the jv/alter_matview_add_index branch September 3, 2025 11:02
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

Successfully merging this pull request may close these issues.

2 participants