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

Remove cache \yii\data\ActiveDataProvider::prepareTotalCount() #20206

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

lav45
Copy link
Contributor

@lav45 lav45 commented Jun 16, 2024

Q A
Is bugfix? ✔️
New feature?
Breaks BC? ✔️
Fixed issues #20194 #20205

Copy link

codecov bot commented Jun 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.98%. Comparing base (fe5688d) to head (1ff1c65).

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #20206      +/-   ##
============================================
- Coverage     64.99%   64.98%   -0.01%     
+ Complexity    11392    11391       -1     
============================================
  Files           430      430              
  Lines         36925    36922       -3     
============================================
- Hits          23998    23993       -5     
- Misses        12927    12929       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@samdark samdark added this to the 2.0.50.1 milestone Jun 16, 2024
@samdark samdark requested review from a team June 16, 2024 20:43
@terabytesoftw
Copy link
Member

You can test if this change resolves the yii2-elasticsearch issue.

@samdark samdark merged commit 140570d into yiisoft:master Jun 17, 2024
84 of 85 checks passed
@sleptor
Copy link

sleptor commented Jun 24, 2024

@lav45 @samdark Cache removal degraded performance.
Now, every page calls count query 4 times! I use kartik gridview

@mtangoo
Copy link
Contributor

mtangoo commented Jun 25, 2024

Can you test if it is the case with Plain Yii Gridview?

@sleptor
Copy link

sleptor commented Jun 25, 2024

Tested standard yii\grid\GridView (dev-master).
It makes 5 (five) identical count queries during webpage load. Checked from debug panel.

So, the cache definitely does not work, which affects performance notably.

@sleptor
Copy link

sleptor commented Jun 25, 2024

FYI
I described the issue and possible solution here
#20213

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.

7 participants