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
Issue:
When executing the same SQL query multiple times, the completion timestamps vary significantly. Even though the query is identical in each execution, the execution time changes, as shown in the image below.
Steps to Reproduce:
Execute the following query multiple times:
sql
Copy code
SELECT a.id, a.company_name, a.sf_account_id, a.sf_lead_id, a.sf_type, e.id, e.environment_id, e.environment_name, e.license_enabled, e.crm, e.is_sandbox, e.zip_code, ad.city, ad.state, ad.country
FROM accounts a
LEFT JOIN environments e ON e.account_id = a.id
LEFT JOIN account_addresses ad ON ad.account_id = a.id
WHERE a.id = 80;
Track the execution time for each query.
Observe the varying timestamps for each execution, even though the query remains the same.
Expected Behavior:
The execution time should be relatively consistent for the same query run multiple times under similar conditions.
Actual Behavior:
The execution time varies significantly between identical queries. This inconsistency is noticeable even when executed consecutively.
Environment:
Database Engine: PostgreSQL
Go Version: go1.22.4
GORM Version: v1.25.11
OS: windows/amd64
Additional Information:
Below is an image showing the variation in execution time for the same SQL query across multiple runs:
The text was updated successfully, but these errors were encountered:
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨
Issue:
When executing the same SQL query multiple times, the completion timestamps vary significantly. Even though the query is identical in each execution, the execution time changes, as shown in the image below.
Steps to Reproduce:
Execute the following query multiple times:
sql
Copy code
SELECT a.id, a.company_name, a.sf_account_id, a.sf_lead_id, a.sf_type, e.id, e.environment_id, e.environment_name, e.license_enabled, e.crm, e.is_sandbox, e.zip_code, ad.city, ad.state, ad.country
FROM accounts a
LEFT JOIN environments e ON e.account_id = a.id
LEFT JOIN account_addresses ad ON ad.account_id = a.id
WHERE a.id = 80;
Track the execution time for each query.
Observe the varying timestamps for each execution, even though the query remains the same.
Expected Behavior:
The execution time should be relatively consistent for the same query run multiple times under similar conditions.
Actual Behavior:
The execution time varies significantly between identical queries. This inconsistency is noticeable even when executed consecutively.
Environment:
Database Engine: PostgreSQL
Go Version: go1.22.4
GORM Version: v1.25.11
OS: windows/amd64
Additional Information:
Below is an image showing the variation in execution time for the same SQL query across multiple runs:
The text was updated successfully, but these errors were encountered: