You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If get-response table gets big enough (in my case it's ~2M rows at the moment), then node falls into a restart loop as it timeouts on the query like this:
SELECT id, operation_id AS operationId, keyword, status, message, created_at AS createdAt, updated_at AS updatedAt
FROM get_response AS get_response
WHERE get_response.created_at <= '2024-11-02 15:24:39'
ORDER BY createdAt ASC LIMIT 1000;
adding index on created_at fixes the issue:
ALTER TABLE operationaldb.get_response ADD INDEX idx_created_at (created_at ASC) VISIBLE;
The text was updated successfully, but these errors were encountered:
If get-response table gets big enough (in my case it's ~2M rows at the moment), then node falls into a restart loop as it timeouts on the query like this:
SELECT
id
,operation_id
ASoperationId
,keyword
,status
,message
,created_at
AScreatedAt
,updated_at
ASupdatedAt
FROM
get_response
ASget_response
WHERE
get_response
.created_at
<= '2024-11-02 15:24:39'ORDER BY
createdAt
ASC LIMIT 1000;adding index on created_at fixes the issue:
ALTER TABLE
operationaldb
.get_response
ADD INDEXidx_created_at
(created_at
ASC) VISIBLE;The text was updated successfully, but these errors were encountered: