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

Fix MySQL visibility index for full text search #3921

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

rodrigozhou
Copy link
Collaborator

What changed?
Removing namespace_id from MySQL full text search index.

Why?
namespace_id cannot be included to the index since there's no easy way to enforce namespace id value with the actual query string to be matched.

How did you test it?
Started server, and run workflows querying Text type search attribute. Checked that it return empty result when no word matches the content.

Potential risks
No risks.

Is hotfix candidate?
No.

@rodrigozhou rodrigozhou requested a review from a team as a code owner February 9, 2023 00:36
@@ -135,9 +135,9 @@ CREATE INDEX by_keyword_07 ON custom_search_attributes (namespace_id, Key
CREATE INDEX by_keyword_08 ON custom_search_attributes (namespace_id, Keyword08);
CREATE INDEX by_keyword_09 ON custom_search_attributes (namespace_id, Keyword09);
CREATE INDEX by_keyword_10 ON custom_search_attributes (namespace_id, Keyword10);
CREATE FULLTEXT INDEX by_text_01 ON custom_search_attributes (namespace_id, Text01);
Copy link
Member

Choose a reason for hiding this comment

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

Oh, now I understand why you added it here. Yes, apparently it won't work for FTS fields.

@rodrigozhou rodrigozhou merged commit 304bc98 into temporalio:master Feb 9, 2023
@rodrigozhou rodrigozhou deleted the fix-vis-mysql-fts-index branch February 9, 2023 08:17
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