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

useEffect can very quickly consume free quotas or cost money when used with 3rd party services #1106

Open
2 of 4 tasks
narayan954 opened this issue Aug 2, 2023 · 6 comments

Comments

@narayan954
Copy link
Owner

narayan954 commented Aug 2, 2023

Description

This issue is basically an instance of this discussion issue , and it might get resolved by the solution provided there only!. Feel free to implement it for our application wherever the db is being used along with useeffect.

Ps: You can implement your own solutions as well!

Steps to reproduce

Check the db usages and also snapshots created as in the screenshot and you might get it.
Our normal cosumption shouldn't even cost more than 20% of the free quota(50k reads) in 24 hour

Screenshots

Report with least usage
image

check those 61 snapshots with 4 active users
db snapshots

Desktop (please complete the following information)

No response

Smartphone (please complete the following information)

No response

Additional information

Since we're also not closing snapshots and that's a separate issue, we have duplicate snapshots degrading the performance for our app(61 on 4 active connection) ;-;

Record

  • I agree to follow this project's Code of Conduct
  • I have checked the existing issues
  • I'm a GSSoC'23 contributor
  • I want to work on this issue
@github-actions

This comment was marked as off-topic.

@biplavmz
Copy link
Contributor

biplavmz commented Aug 3, 2023

Hii @narayan954 I would like to work on this issue
please assign me this issue under gssoc label and level.

@biplavmz
Copy link
Contributor

biplavmz commented Aug 3, 2023

I would like to use React Query for data fetching insist of useEffect.
React Query :-
Data Fetching: React Query provides hooks like useQuery and useMutation to fetch and mutate data respectively. These hooks handle the asynchronous requests and automatically update the data in the cache.

@narayan954
Copy link
Owner Author

I would like to use React Query for data fetching insist of useEffect. React Query :- Data Fetching: React Query provides hooks like useQuery and useMutation to fetch and mutate data respectively. These hooks handle the asynchronous requests and automatically update the data in the cache.

okay let me check something

@GauravGupta993
Copy link

I would like to work on this issue. Please assign this issue to me.

@narayan954
Copy link
Owner Author

I would like to work on this issue. Please assign this issue to me.

Hi @GauravGupta993 , you've already been assigned an issue. Please work on that first. :)

@narayan954 narayan954 added hard and removed level3 labels Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants