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

Cluster: Speed up processing of MySQL Query Rules #3930

Merged
merged 2 commits into from
Jul 26, 2022

Conversation

renecannao
Copy link
Contributor

Multiple changes:

  • Query_Processor stored the resultset of query rules loaded to runtime
    (previously this was only for query rules fast routing)
  • Admin returns the stored resultset (query rules and fast routing)
    when queries by Cluster
  • In khash replaced the hashing function from the built-in
    __ac_X31_hash_string to CityHash32
  • When Cluster is used, it calls load_mysql_query_rules_to_runtime() passing
    the resultsets retrieved by the remote peer
  • Increased SQLite cache_size to ~50MB: this seems to be a very small optimization
    and probably it will be reverted
  • pull_mysql_query_rules_from_peer() uses transactions to write
    to mysql_query_rules_fast_routing
  • (important change) pull_mysql_query_rules_from_peer() verifies the checksum
    of MySQL Query ules before loading them to runtime

Multiple changes:
- Query_Processor stored the resultset of query rules loaded to runtime
  (previously this was only for query rules fast routing)
- Admin returns the stored resultset (query rules and fast routing)
  when queries by Cluster
- In khash replaced the hashing function from the built-in
  __ac_X31_hash_string to CityHash32
- When Cluster is used, it calls load_mysql_query_rules_to_runtime() passing
  the resultsets retrieved by the remote peer
- Increased SQLite cache_size to ~50MB: this seems to be a very small optimization
  and probably it will be reverted
- pull_mysql_query_rules_from_peer() uses transactions to write
  to mysql_query_rules_fast_routing
- (important change) pull_mysql_query_rules_from_peer() verifies the checksum
  of MySQL Query ules before loading them to runtime
@renecannao renecannao merged commit a60fc1b into v2.x Jul 26, 2022
@renecannao renecannao deleted the v2.x-cluster_time_rules branch January 11, 2023 10:50
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.

1 participant