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] Allowing specific paths when updating the stored data #421

Open
AquaDragon33 opened this issue Jul 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@AquaDragon33
Copy link

I'd like to request allowing add_or_update_field to selectively update a single element in the dictionary stored on Firebase. This function is specific to Godot 3.5, but I believe this applies to Godot 4's version as well.

Currently, if you have a dictionary or an array, updating must be done in a way roughly like this:

document.add_or_update_field(word_experience, {가다: 6, 거기: 3, 기다리다: 1, 네: 6, 대: 6, 둘: 1, 먹다: 3, 멈추다: 3, 물: 28...)

However, when working with nested structures, single document saves, or especially large dictionaries, this can result in some performance issues due to the sheer size of the update.

I'd like to request allowing a path to be provided to update something specifically, as such:

document.add_or_update_field(word_experience.가다, 50)

Which would allow the creator to track changes made since a prior save and then send updates only for those things specifically, significantly reducing the computational overhead.

As usual, thanks for the work you've done to keep this updated.

@AquaDragon33 AquaDragon33 added the enhancement New feature or request label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant