René's URL Explorer Experiment


Title: fix: Make batch_add_requests split batches by serialized payload size by vdusek · Pull Request #953 · apify/apify-client-python · GitHub

Open Graph Title: fix: Make batch_add_requests split batches by serialized payload size by vdusek · Pull Request #953 · apify/apify-client-python

X Title: fix: Make batch_add_requests split batches by serialized payload size by vdusek · Pull Request #953 · apify/apify-client-python

Description: Apify API client for Python—Programmatically run Actors, manage and stream data from storages (datasets, key-value stores, request queues), schedule and monitor runs, and access the full Apify platform API. Sync and async interfaces with automatic retries and pagination. - fix: Make batch_add_requests split batches by serialized payload size by vdusek · Pull Request #953 · apify/apify-client-python

Open Graph Description: The 9 MB payload guard in batch_add_requests was inert: constrained_batches was called without get_len, so the default len() measured each request dict's key count (~4) instead of its serialize...

X Description: The 9 MB payload guard in batch_add_requests was inert: constrained_batches was called without get_len, so the default len() measured each request dict's key count (~4) instead of its seria...

Opengraph URL: https://github.com/apify/apify-client-python/pull/953

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:b7851a0d-1a89-e243-52e9-58905b9b1227
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA052:1CF166:299A9D3:38C3A50:6B004FB8
html-safe-noncef6a5625c0261df1d02782e0a94e15330f4dcb6321d8ac91571d3b58776048c44
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDUyOjFDRjE2NjoyOTlBOUQzOjM4QzNBNTA6NkIwMDRGQjgiLCJ2aXNpdG9yX2lkIjoiMjQzNjQxOTI4NTM0NjcwMTI0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfc66d65a739a142718f82268bb4e0973939ceb45419984cd26181267b848c9e9
hovercard-subject-tagpull_request:4068917819
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/apify/apify-client-python/953/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5b2aa6958fb0901b141cdac7a20bc1304ab7a7a9337e69c548616ff7a44f21d4/apify/apify-client-python/pull/953
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5b2aa6958fb0901b141cdac7a20bc1304ab7a7a9337e69c548616ff7a44f21d4/apify/apify-client-python/pull/953
og:image:altThe 9 MB payload guard in batch_add_requests was inert: constrained_batches was called without get_len, so the default len() measured each request dict's key count (~4) instead of its serialize...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevdusek
hostnamegithub.com
expected-hostnamegithub.com
Nonef420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb
turbo-cache-controlno-cache
go-importgithub.com/apify/apify-client-python git https://github.com/apify/apify-client-python.git
octolytics-dimension-user_id24586296
octolytics-dimension-user_loginapify
octolytics-dimension-repository_id164647835
octolytics-dimension-repository_nwoapify/apify-client-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id164647835
octolytics-dimension-repository_network_root_nwoapify/apify-client-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release26e00df917aba0f128135dc073ea0c5e33a70d40
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/apify/apify-client-python/pull/953#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapify%2Fapify-client-python%2Fpull%2F953
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapify%2Fapify-client-python%2Fpull%2F953
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=apify%2Fapify-client-python
Reloadhttps://github.com/apify/apify-client-python/pull/953
Reloadhttps://github.com/apify/apify-client-python/pull/953
Reloadhttps://github.com/apify/apify-client-python/pull/953
apifyhttps://github.com/apify
apify-client-pythonhttps://github.com/apify/apify-client-python
Codehttps://github.com/apify/apify-client-python
Issues12 (12)https://github.com/apify/apify-client-python/issues
Pull requests2 (2)https://github.com/apify/apify-client-python/pulls
Discussionshttps://github.com/apify/apify-client-python/discussions
Actionshttps://github.com/apify/apify-client-python/actions
Security and qualityhttps://github.com/apify/apify-client-python/security
Insightshttps://github.com/apify/apify-client-python/insights
https://github.com/apify/apify-client-python
vdusekhttps://github.com/vdusek
masterhttps://github.com/apify/apify-client-python/tree/master
fix/batch-add-requests-payload-sizehttps://github.com/apify/apify-client-python/tree/fix/batch-add-requests-payload-size
Conversationhttps://github.com/apify/apify-client-python/pull/953
Commits5 (5)https://github.com/apify/apify-client-python/pull/953/commits
Checkshttps://github.com/apify/apify-client-python/pull/953/checks
Files changedhttps://github.com/apify/apify-client-python/pull/953/files
fix: Make batch_add_requests split batches by serialized payload sizehttps://github.com/apify/apify-client-python/pull/953#top
vdusekhttps://github.com/vdusek
masterhttps://github.com/apify/apify-client-python/tree/master
fix/batch-add-requests-payload-sizehttps://github.com/apify/apify-client-python/tree/fix/batch-add-requests-payload-size
https://github.com/vdusek
vdusekhttps://github.com/vdusek
Jul 16, 2026https://github.com/apify/apify-client-python/pull/953#issue-4902403175
Please reload this pagehttps://github.com/apify/apify-client-python/pull/953
Please reload this pagehttps://github.com/apify/apify-client-python/pull/953
https://github.com/vdusek
fix: Make batch_add_requests split batches by serialized payload sizehttps://github.com/apify/apify-client-python/pull/953/commits/6717e35799835436f11d3ec29252e039ad395302
6717e35https://github.com/apify/apify-client-python/pull/953/commits/6717e35799835436f11d3ec29252e039ad395302
https://github.com/vdusek
vdusekhttps://github.com/vdusek
adhoc https://github.com/apify/apify-client-python/issues?q=state%3Aopen%20label%3Aadhoc
t-tooling https://github.com/apify/apify-client-python/issues?q=state%3Aopen%20label%3At-tooling
Jul 16, 2026https://github.com/apify/apify-client-python/pull/953#event-28071263568
https://github.com/vdusek
vdusekhttps://github.com/vdusek
Jul 16, 2026https://github.com/apify/apify-client-python/pull/953#event-28071264786
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
145th sprint - Tooling teamhttps://github.com/apify/apify-client-python/milestone/724
Jul 16, 2026https://github.com/apify/apify-client-python/pull/953#event-28071273128
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
tested https://github.com/apify/apify-client-python/issues?q=state%3Aopen%20label%3Atested
Jul 16, 2026https://github.com/apify/apify-client-python/pull/953#event-28071273911
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
Jul 16, 2026https://github.com/apify/apify-client-python/pull/953#issuecomment-4992358518
Please reload this pagehttps://github.com/apify/apify-client-python/pull/953
Codecovhttps://app.codecov.io/gh/apify/apify-client-python/pull/953?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify
a8a393bhttps://app.codecov.io/gh/apify/apify-client-python/commit/a8a393bfcca01c8396b461036a9978fa5b28e6bf?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify
2f90327https://app.codecov.io/gh/apify/apify-client-python/commit/2f9032739d743728ad85607fe8bd0ac335aa1a1b?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify
Flaghttps://app.codecov.io/gh/apify/apify-client-python/pull/953/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify
integrationhttps://app.codecov.io/gh/apify/apify-client-python/pull/953/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify
unithttps://app.codecov.io/gh/apify/apify-client-python/pull/953/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify
Click herehttps://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify#carryforward-flags-in-the-pull-request-comment
☔ View full report in Codecov by Harnesshttps://app.codecov.io/gh/apify/apify-client-python/pull/953?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify
Share it herehttps://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify
Test Analyticshttps://docs.codecov.com/docs/test-analytics
JS Bundle Analysishttps://docs.codecov.com/docs/javascript-bundle-analysis
Please reload this pagehttps://github.com/apify/apify-client-python/pull/953
vdusekhttps://github.com/vdusek
July 16, 2026 15:29https://github.com/apify/apify-client-python/pull/953#commits-pushed-ab42613
https://github.com/vdusek
refactor: Extract request payload size measurement into a helperhttps://github.com/apify/apify-client-python/pull/953/commits/ab426131eeb7c240e6fba8336b6f09f2a90226bc
ab42613https://github.com/apify/apify-client-python/pull/953/commits/ab426131eeb7c240e6fba8336b6f09f2a90226bc
https://github.com/vdusek
style: Remove redundant comment in batch_add_requestshttps://github.com/apify/apify-client-python/pull/953/commits/01494f457fbee2784ab42687c3989d04b6471885
01494f4https://github.com/apify/apify-client-python/pull/953/commits/01494f457fbee2784ab42687c3989d04b6471885
https://github.com/vdusek
vdusekhttps://github.com/vdusek
Pijukatelhttps://github.com/Pijukatel
July 16, 2026 13:49https://github.com/apify/apify-client-python/pull/953#event-28072864056
https://github.com/vdusek
vdusekhttps://github.com/vdusek
July 16, 2026 13:49https://github.com/apify/apify-client-python/pull/953#event-28072868166
https://github.com/Pijukatel
Pijukatelhttps://github.com/Pijukatel
Jul 17, 2026 https://github.com/apify/apify-client-python/pull/953#pullrequestreview-4720596809
View reviewed changes https://github.com/apify/apify-client-python/pull/953/files/01494f457fbee2784ab42687c3989d04b6471885
src/apify_client/_resource_clients/request_queue.pyhttps://github.com/apify/apify-client-python/pull/953/files/01494f457fbee2784ab42687c3989d04b6471885#diff-8c1afeba7551a3409fe77f612cb7fe037b981f961fef8c542fbc2d3bf2f999b5
Please reload this pagehttps://github.com/apify/apify-client-python/pull/953
https://github.com/Pijukatel
Pijukatelhttps://github.com/Pijukatel
Jul 17, 2026 https://github.com/apify/apify-client-python/pull/953#pullrequestreview-4720620996
View reviewed changes https://github.com/apify/apify-client-python/pull/953/files/01494f457fbee2784ab42687c3989d04b6471885
src/apify_client/_resource_clients/request_queue.pyhttps://github.com/apify/apify-client-python/pull/953/files/01494f457fbee2784ab42687c3989d04b6471885#diff-8c1afeba7551a3409fe77f612cb7fe037b981f961fef8c542fbc2d3bf2f999b5
Please reload this pagehttps://github.com/apify/apify-client-python/pull/953
https://github.com/vdusek
refactor: Serialize requests once when batching in batch_add_requestshttps://github.com/apify/apify-client-python/pull/953/commits/e9436404f38555c1b21cbbffae3678c732dfcb58
e943640https://github.com/apify/apify-client-python/pull/953/commits/e9436404f38555c1b21cbbffae3678c732dfcb58
https://github.com/vdusek
vdusekhttps://github.com/vdusek
Pijukatelhttps://github.com/Pijukatel
July 17, 2026 12:58https://github.com/apify/apify-client-python/pull/953#event-28122401981
https://github.com/Pijukatel
Pijukatelhttps://github.com/Pijukatel
Jul 17, 2026 https://github.com/apify/apify-client-python/pull/953#pullrequestreview-4723163473
View reviewed changes https://github.com/apify/apify-client-python/pull/953/files/e9436404f38555c1b21cbbffae3678c732dfcb58
Pijukatelhttps://github.com/Pijukatel
https://github.com/apify/apify-client-python/pull/953#pullrequestreview-4723163473
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/apify/apify-client-python/pull/953
https://github.com/vdusek
vdusekhttps://github.com/vdusek
Jul 17, 2026 https://github.com/apify/apify-client-python/pull/953#ref-issue-4911856954
Avoid double JSON serialization in batchAddRequests apify/apify-client-js#972 https://github.com/apify/apify-client-js/issues/972
https://github.com/vdusek
perf: validate and serialize requests in a single pass to cut peak me…https://github.com/apify/apify-client-python/pull/953/commits/2f9032739d743728ad85607fe8bd0ac335aa1a1b
2f90327https://github.com/apify/apify-client-python/pull/953/commits/2f9032739d743728ad85607fe8bd0ac335aa1a1b
https://github.com/vdusek
vdusekhttps://github.com/vdusek
2adf515https://github.com/apify/apify-client-python/commit/2adf515d3e8db47b7f75d69931580ab9269cb2e3
Jul 17, 2026https://github.com/apify/apify-client-python/pull/953#event-28125564029
Please reload this pagehttps://github.com/apify/apify-client-python/pull/953
https://github.com/vdusek
vdusekhttps://github.com/vdusek
July 17, 2026 14:08https://github.com/apify/apify-client-python/pull/953#event-28125565389
https://github.com/vdusek
vdusekhttps://github.com/vdusek
Sep 9, 2026 https://github.com/apify/apify-client-python/pull/953#ref-pullrequest-5397715153
perf!: serialize requests once in batchAddRequests apify/apify-client-js#1051 https://github.com/apify/apify-client-js/pull/1051
vdusekhttps://github.com/vdusek
Sep 14, 2026 https://github.com/apify/apify-client-python/pull/953#ref-commit-2ca4b04
https://github.com/vdusek
perf!: serialize requests once in batchAddRequests (https://github.com/apify/apify-client-js/commit/2ca4b04383cb530cd47084f309059cfc9302ab91
#1051https://github.com/apify/apify-client-js/pull/1051
)https://github.com/apify/apify-client-js/commit/2ca4b04383cb530cd47084f309059cfc9302ab91
2ca4b04https://github.com/apify/apify-client-js/commit/2ca4b04383cb530cd47084f309059cfc9302ab91
apify/apify-client-python#953https://github.com/apify/apify-client-python/pull/953
#972https://github.com/apify/apify-client-js/issues/972
B4nanhttps://github.com/B4nan
Sep 30, 2026 https://github.com/apify/apify-client-python/pull/953#ref-commit-bddfd7f
https://github.com/vdusek
https://github.com/B4nan
perf!: serialize requests once in batchAddRequests (https://github.com/apify/apify-client-js/commit/bddfd7fecaf5b0bd3ac166d11af4eb47f61cef9b
#1051https://github.com/apify/apify-client-js/pull/1051
)https://github.com/apify/apify-client-js/commit/bddfd7fecaf5b0bd3ac166d11af4eb47f61cef9b
bddfd7fhttps://github.com/apify/apify-client-js/commit/bddfd7fecaf5b0bd3ac166d11af4eb47f61cef9b
apify/apify-client-python#953https://github.com/apify/apify-client-python/pull/953
#972https://github.com/apify/apify-client-js/issues/972
https://github.co/hiddenchars
https://github.com/apify/apify-client-python/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapify%2Fapify-client-python%2Fpull%2F953
https://github.com/Pijukatel
Pijukatel https://github.com/Pijukatel
https://github.com/apify/apify-client-python/pull/953/files/e9436404f38555c1b21cbbffae3678c732dfcb58
Please reload this pagehttps://github.com/apify/apify-client-python/pull/953
https://github.com/vdusek
vdusek https://github.com/vdusek
adhoc https://github.com/apify/apify-client-python/issues?q=state%3Aopen%20label%3Aadhoc
t-tooling https://github.com/apify/apify-client-python/issues?q=state%3Aopen%20label%3At-tooling
tested https://github.com/apify/apify-client-python/issues?q=state%3Aopen%20label%3Atested
145th sprint - Tooling team https://github.com/apify/apify-client-python/milestone/724
Please reload this pagehttps://github.com/apify/apify-client-python/pull/953
https://github.com/vdusek
https://github.com/Pijukatel
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.