Feat/index optimization and benchmarking #878
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes: #863
/claim #863
Optimization Process
Initial Analysis
Description: Conducted an analysis of the current indexing strategy to identify potential areas for improvement.
Tools Used: PgHero and Dexter
Findings: Identified the need to delete
idx_tuples_entity
and addidx_attributes_tenant_created_tx
for optimization.Index Optimization
Optimization Strategies: Implemented specific index optimizations.
idx_tuples_entity
idx_attributes_tenant_created_tx
Implementation Details: Executed SQL commands to delete and add indexes.
Benchmarking Setup
Environment Details
Benchmarking Methodology
Query Tested: Checked queries from
internal/engines
folder.SELECT name, serialized_definition, version
FROM public.schema_definitions
WHERE name= :name AND version= :version AND tenant_id= :tenant_id'
LIMIT 1;
Procedure: Described the benchmarking process, including the number of times each query is run and how metrics are collected.
Benchmark Results
Before Optimization
After Optimization
Analysis and Conclusions
Performance Improvements: Significant improvements in query performance were observed post-optimization.
Recommendations: Continue to monitor and analyze system performance. Consider further optimizations based on future usage patterns.