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

Bug: Slow response when getting Resource details #3

Open
1 task done
Bill2015 opened this issue Aug 31, 2023 · 0 comments
Open
1 task done

Bug: Slow response when getting Resource details #3

Bill2015 opened this issue Aug 31, 2023 · 0 comments
Labels

Comments

@Bill2015
Copy link
Owner

Is there an existing issue for this?

  • have searched the existing issues

Description

Getting Resource Details may have long response times.
Because currently qurery command like below

SELECT 
  *,
  (SELECT 
      *,
      (->belong->subject.id)[0] AS belong_subject,
      (->belong->subject.name)[0] AS subject_name
      FROM tag 
      WHERE ->tagging->resource.id CONTAINS $parent.id
) AS tags
FROM resource
WHERE id == $id"

We use subquery to get subject data.
There may be have better way, but currently, I can't figure out

Also, I don't have enough data can confirm this query is slow when large data.

Possible Solution

None

Bill2015 added a commit that referenced this issue Sep 2, 2023
But, I've encountered the date time convert error.
The error like below, I've no clue how to solve it.
Therefore, this work will be postponed when I know how to fixed it.
```
error: "invalid type: string \"2023-09-01T23:35:43.098762336Z\", expected a unix timestamp tuple"
```

## Related Issue
#3
@Bill2015 Bill2015 added the bug Something isn't working label Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant