Skip to content

Conversation

@jtsodapop
Copy link
Contributor

update to include max datarow operations

# until we address performance issues with datarow create with metadata
max_datarow_with_metadata = 30_000
if (len(items) > max_datarow_with_metadata):
if (len(items) > MAX_DATAROW_WITH_METADATA):
Copy link
Contributor

Choose a reason for hiding this comment

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

Would appreciate it if you can remove the parens here

f"Cannot create more than {MAX_DATAROW_WITH_METADATA} DataRows, if any DataRows contain metadata"
)

if len(items) > MAX_DATAROW_PER_API_OPERATION:
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's also put this check before the above check, since it's more generic

@jtsodapop jtsodapop requested a review from kkim-labelbox July 20, 2022 16:54
Copy link
Contributor

@kkim-labelbox kkim-labelbox left a comment

Choose a reason for hiding this comment

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

LGTM!

@jtsodapop jtsodapop merged commit 0be6ef0 into develop Jul 20, 2022
@jtsodapop jtsodapop deleted the jtso/al-3045 branch July 20, 2022 17:02
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