threefoldtech / tfgrid-sdk-go

Apache License 2.0
2 stars 4 forks source link

improve grid proxy queries #308

Closed xmonader closed 6 months ago

xmonader commented 1 year ago

proper indices and queries, make sure to include performance changes

xmonader commented 11 months ago

What is the status here? it's linked to a closed PR?

if already addressed in another PR, please make sure to link it here and update the project to 3.12

MarioBassem commented 11 months ago

the pr tried to introduce a way to improve contracts endpoint performance, but it was closed in favor of #356

this is already addressed in some issues:

i did a pr #419 that did a few things:

Omarabdul3ziz commented 11 months ago

WIP: reviewed the mentioned pr and was working on separating the schema change part in another branch cause it may need updates in graphql and data migrationsm or mario was suggesting to create the aggregated tables on setup query.

xmonader commented 10 months ago

Status?

Omarabdul3ziz commented 10 months ago

there is no progress here yet, there were higher-priority issues I was working on. I started investigating the options we can do to optimize the queries and will keep the issue updated

Omarabdul3ziz commented 10 months ago

update (wip):

Omarabdul3ziz commented 10 months ago

update (wip):

Omarabdul3ziz commented 10 months ago

notes:

xmonader commented 10 months ago

please make sure the queries that affect the clients and the dashboard get more priority

MarioBassem commented 10 months ago

i got up to speed with @Omarabdul3ziz , tried to fix the farms query, but for some reason some queries with specific filters tend to take too much time, still investigating why...

MarioBassem commented 9 months ago

dividing this into smaller issues:

MarioBassem commented 9 months ago

worked with @Omarabdul3ziz on creating a small cache table to prevent repeated calculations. the results are promising without adding any additional indices. todo:

Omarabdul3ziz commented 9 months ago

update (wip) continued working with mario today on:

MarioBassem commented 9 months ago

update:

we still need to improve tests quality, and add benchmarks

Omarabdul3ziz commented 9 months ago

update:

Omarabdul3ziz commented 9 months ago

https://github.com/threefoldtech/tfgrid-sdk-go/pull/533 is now merged and released with v0.13.0 and deployed on dev