Skip to content

Conversation

@bretthoerner
Copy link
Contributor

@mattrobenolt This was the quick fix, but I guess a group could in theory have a shitload of GroupTagKeys... do you think I need to batch/iterate?

@bretthoerner bretthoerner force-pushed the remove-grouptagkey-tagkey-join branch from fca8159 to a629fb8 Compare September 8, 2017 21:21

class GroupTagsEndpoint(GroupEndpoint):
def get(self, request, group):
grouptagkeys = list(GroupTagKey.objects.filter(
Copy link
Member

Choose a reason for hiding this comment

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

yeah this won't work as it could be like a billion rows

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there a place off the top of your head where we already handle iterating across different DBs?

Copy link
Member

Choose a reason for hiding this comment

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

oh actually this is fine, grouptagkeys is limited to one group, sorry!

@bretthoerner bretthoerner merged commit c30a91e into master Sep 8, 2017
@bretthoerner bretthoerner deleted the remove-grouptagkey-tagkey-join branch September 8, 2017 21:39
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2020
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