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

Feature request: Add a limit to the write function to honor the max request size imposed on the Wikibase server #463

Open
dpriskorn opened this issue Dec 2, 2022 · 2 comments
Assignees

Comments

@dpriskorn
Copy link
Contributor

See #462 for user story and background

@dpriskorn dpriskorn changed the title Add a limit to the write function to honor the max request size imposed on the Wikibase server Feature request: Add a limit to the write function to honor the max request size imposed on the Wikibase server Dec 2, 2022
@LeMyst
Copy link
Owner

LeMyst commented Dec 7, 2022

Maybe add a parameter to the write() method to filter the statements you want to update.
Like, you have a huge object, but you only want to update one statement in it, at the moment, WBI don't (and can't) track which statement you update (or not), but when you write you can pass to only send these statement(s) and ignore everything else ?

@dpriskorn
Copy link
Contributor Author

dpriskorn commented Dec 7, 2022

That is not a solution in my case. I'm compiling the whole item and creating it in one go currently.
I found a workaround: compile up to 500 statements and upload. Then append the rest using wbcreateclaim via wbi helper.

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

No branches or pull requests

2 participants