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

Use set in fetch_columns for efficient #5336

Merged
merged 2 commits into from
Jul 31, 2023

Conversation

zhongjiajie
Copy link
Collaborator

Change list to set

What type of PR is this? (check all applicable)

  • Other

Description

Use set replace list more efficient, cause function fetch_columns call frequently, O(1) is better than O(n)

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

@zhongjiajie
Copy link
Collaborator Author

zhongjiajie commented Dec 31, 2020

@rauchy @arikfr @gabrieldutra @kravets-levko PTAL, thanks

@zhongjiajie
Copy link
Collaborator Author

Why this PR with failling CI, also in #5338 and #5337

@zhongjiajie zhongjiajie force-pushed the efficient_columns_check branch from 69be424 to ff02026 Compare July 30, 2023 16:20
@zhongjiajie
Copy link
Collaborator Author

zhongjiajie commented Jul 30, 2023

PTAL this pr if you have time @justinclift @konnectr @junnplus , just a simple improvement

@zhongjiajie
Copy link
Collaborator Author

backend lint failed due to #6321

@codecov
Copy link

codecov bot commented Jul 31, 2023

Codecov Report

Merging #5336 (35cac21) into master (f6ba950) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #5336   +/-   ##
=======================================
  Coverage   60.75%   60.75%           
=======================================
  Files         153      153           
  Lines       12511    12511           
  Branches     1694     1694           
=======================================
  Hits         7601     7601           
  Misses       4684     4684           
  Partials      226      226           
Files Changed Coverage Δ
redash/query_runner/__init__.py 75.55% <100.00%> (ø)

@justinclift justinclift merged commit a9a348c into getredash:master Jul 31, 2023
@justinclift
Copy link
Member

Merged! Thanks heaps for creating this PR @zhongjiajie, and for keeping with it through all of this extra time. 😄

@zhongjiajie zhongjiajie deleted the efficient_columns_check branch August 1, 2023 01:19
harveyrendell pushed a commit to pushpay/redash that referenced this pull request Jan 8, 2025
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.

3 participants