Closed dcdamien closed 2 months ago
Hello, @dcdamien,
I apologize for any inconvenience caused. I've looked into the issue, and here are a few findings from my end. Please take a look:
created
time, then manipulates the data using the date_trunc
query parameter.date_trunc('month', current_date)
parameter is not being passed to the API.date_trunc
in the WHERE
clause might slightly impact performance, especially if the created
column is indexed, as it changes how the date is compared.date_trunc('month', current_date)
, it returned the result as 2000-01-01 00:00:00 +0000 UTC
.I have made some modifications to the query to correctly populate the date and time and to make the API call within the specified time period.
SELECT
id,
key,
self,
status,
created,
resolution_date,
type
FROM
jira_issue
WHERE project_key = 'TEST' AND created >= now() - interval '30 day'
I tested the modified query, and it seems to be working fine on my end, making the API call based on the created
query parameter.
Could you please try the query and let me know if it helps?
BTW, I have raised a PR by increasing the MaxResult
value to 500
per page, earlier it was 50
.
Thanks!
@ParthaI thank you, I just tested the modified query and it works a way faster!
Describe the bug Queries are very slow or not returing result at all.
After starting the query, counter stops at value of approx all actual issues that are returned by equivalent JQL, for instance:
⠹ Loading results: 246
In the plugin log file there are no errors, but lots of similar new lines produced:
After waiting for over 10 minutes the counter is still on the same value and nothing happen. After stoping the query with CTRL+C, there is an error
Error: execution cancelled
in CLI and the result is returned.Steampipe version (
steampipe -v
)Steampipe v0.23.3
Plugin version (
steampipe plugin list
)To reproduce
Expected behavior Result is returned in reasonable time without cancelling the operation.