Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Do not use the count value from storage.get_all() #286

Merged
merged 1 commit into from
Dec 10, 2018

Conversation

leplatrem
Copy link
Contributor

No description provided.

@leplatrem leplatrem requested a review from peterbe December 7, 2018 22:28
Copy link

@peterbe peterbe left a comment

Choose a reason for hiding this comment

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

Some day we're going to have to replace that line with records = self.storage.list_all which will mean it won't need to make a separate SELECT COUNT(*) ... unnecessarily.

Perhaps we should leave a comment about that. Or just make a mental note to not forget about ALL storage.get_all uses in all other plugins we manage.

@glasserc
Copy link
Contributor

This is meant to support our fix for Kinto/kinto#1624, where we decided to only ever return records or total but not both at once.

@leplatrem leplatrem merged commit f572f80 into master Dec 10, 2018
@leplatrem leplatrem deleted the do-not-use-get_all-count branch December 10, 2018 10:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants