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

Improve Performance of Contracts REST API Endpoints with High Entity Count #10434

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DROP INDEX IF EXISTS entity__id_type;

CREATE INDEX entity__type_id ON entity(type, id);
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DROP INDEX IF EXISTS entity__id_type;

Check failure on line 1 in hedera-mirror-importer/src/main/resources/db/migration/v2/V2.9.0__drop_entity__id_type_index.sql

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

hedera-mirror-importer/src/main/resources/db/migration/v2/V2.9.0__drop_entity__id_type_index.sql#L1

Expected SET ANSI_NULLS ON near top of file

Check failure on line 1 in hedera-mirror-importer/src/main/resources/db/migration/v2/V2.9.0__drop_entity__id_type_index.sql

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

hedera-mirror-importer/src/main/resources/db/migration/v2/V2.9.0__drop_entity__id_type_index.sql#L1

Expected SET NOCOUNT ON near top of file

Check failure on line 1 in hedera-mirror-importer/src/main/resources/db/migration/v2/V2.9.0__drop_entity__id_type_index.sql

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

hedera-mirror-importer/src/main/resources/db/migration/v2/V2.9.0__drop_entity__id_type_index.sql#L1

Expected SET QUOTED_IDENTIFIER ON near top of file

Check failure on line 1 in hedera-mirror-importer/src/main/resources/db/migration/v2/V2.9.0__drop_entity__id_type_index.sql

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

hedera-mirror-importer/src/main/resources/db/migration/v2/V2.9.0__drop_entity__id_type_index.sql#L1

Expected SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED near top of file

CREATE INDEX entity__type_id ON entity(type, id);
Loading