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

Add bulk update mechanism for List/Tree data sources #2747

Open
freakboy3742 opened this issue Aug 6, 2024 Discussed in #2746 · 0 comments
Open

Add bulk update mechanism for List/Tree data sources #2747

freakboy3742 opened this issue Aug 6, 2024 Discussed in #2746 · 0 comments
Labels
enhancement New features, or improvements to existing features.

Comments

@freakboy3742
Copy link
Member

freakboy3742 commented Aug 6, 2024

Discussed in #2746

Toga's ListSource and TreeSource APIs have list-like APIs - but they currently only provide insert() and append(), inserting single rows. There are no "bulk update" APIs, like extend().

Although you can superficially implement extend(N rows) with a series of N append() calls, there is a potential internal optimisation in only emitting a single notification, rather than N individual notifications.

Toga's list-like Source APIs should allow for "bulk update" in the form of extend(), with an optimized notification that can respond to a bulk update.

@freakboy3742 freakboy3742 added the enhancement New features, or improvements to existing features. label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features, or improvements to existing features.
Projects
None yet
Development

No branches or pull requests

1 participant