Skip to content

Commit

Permalink
Apollo Blockchain 1.50.35 Release (H2 block timestamp index fix) pr#1…
Browse files Browse the repository at this point in the history
…212/stage

Merge pull request #1212 from ApolloFoundation/stage
Add alternative block_timestamp_idx with DESC sort to speedup blockchain sync due to long last block lookup statement exection on popOff operation: SELECT * FROM block WHERE next_block_id <> 0 OR next_block_id IS NULL ORDER BY timestamp DESC LIMIT 1
Original block_timestamp_idx is not deleted since deletion works differently for o-db initialization and existing db migration (require different statements)
Bump version to 1.50.35
Fully compatible with 1.50.34 reverted release
  • Loading branch information
AndrewBoyarsky authored Jan 28, 2022
2 parents 4414347 + 2b3b7eb commit 0f4b31f
Show file tree
Hide file tree
Showing 19 changed files with 31 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ OS name: "linux", version: "5.9.12-200.fc33.x86_64", arch: "amd64", family: "uni

### Installation artefacts

The final artifact that is ready to install and run located in the ___apl-exec/target___ directory and has name like ___apollo-blockchain-1.50.33-NoOS-NoArch.zip___.
The final artifact that is ready to install and run located in the ___apl-exec/target___ directory and has name like ___apollo-blockchain-1.50.35-NoOS-NoArch.zip___.

Unzip it to some location and run by scripts in ___ApolloWallet/apollo-blockchain/bin___ directory.

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.50.33
1.50.35
2 changes: 1 addition & 1 deletion apl-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.apollocurrency</groupId>
<artifactId>apollo-blockchain</artifactId>
<version>1.50.33</version>
<version>1.50.35</version>
</parent>

<artifactId>apl-api</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion apl-api2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.apollocurrency</groupId>
<artifactId>apollo-blockchain</artifactId>
<version>1.50.33</version>
<version>1.50.35</version>
</parent>

<artifactId>apl-api2</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion apl-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.apollocurrency</groupId>
<artifactId>apl-bom</artifactId>
<version>1.50.33</version>
<version>1.50.35</version>
<packaging>pom</packaging>
<name>apl-bom</name>

Expand Down
2 changes: 1 addition & 1 deletion apl-conf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.apollocurrency</groupId>
<artifactId>apollo-blockchain</artifactId>
<version>1.50.33</version>
<version>1.50.35</version>
</parent>
<artifactId>apl-conf</artifactId>
<name>apl-conf</name>
Expand Down
2 changes: 1 addition & 1 deletion apl-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.apollocurrency</groupId>
<artifactId>apollo-blockchain</artifactId>
<version>1.50.33</version>
<version>1.50.35</version>
</parent>
<artifactId>apl-core</artifactId>
<name>apl-core</name>
Expand Down
2 changes: 1 addition & 1 deletion apl-crypto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.apollocurrency</groupId>
<artifactId>apollo-blockchain</artifactId>
<version>1.50.33</version>
<version>1.50.35</version>
</parent>

<artifactId>apl-crypto</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion apl-db-updater/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>apollo-blockchain</artifactId>
<groupId>com.apollocurrency</groupId>
<version>1.50.33</version>
<version>1.50.35</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Copyright (c) 2022. Apollo Foundation.
*/
-- Recreate block_timestamp_idx with DESC sort to ensure
-- fast last block lookup required for popOff operation
--
-- Works only for index created from no-db initialization
--ALTER TABLE block DROP CONSTRAINT `block_timestamp_idx`;
-- Works only for index already populated with data
--DROP INDEX block_timestamp_idx;
-- We just create a new index with reversed sort, because it's the only one
-- working solution to maintain existing db migration and new db creation
CREATE UNIQUE INDEX reversed_block_timestamp_idx ON block (`timestamp` DESC) ;
2 changes: 1 addition & 1 deletion apl-dex/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>apollo-blockchain</artifactId>
<groupId>com.apollocurrency</groupId>
<version>1.50.33</version>
<version>1.50.35</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion apl-exec/packaging/pkg-apollo-blockchain.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "apollo-blockchain",
"description": "Apollo blockchain backend",
"version": "1.50.33",
"version": "1.50.35",
"dependencies": [
{
"name": "OpenJDK",
Expand Down
2 changes: 1 addition & 1 deletion apl-exec/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.apollocurrency</groupId>
<artifactId>apollo-blockchain</artifactId>
<version>1.50.33</version>
<version>1.50.35</version>
</parent>
<artifactId>apl-exec</artifactId>
<name>apl-exec</name>
Expand Down
2 changes: 1 addition & 1 deletion apl-smc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<artifactId>apollo-blockchain</artifactId>
<groupId>com.apollocurrency</groupId>
<version>1.50.33</version>
<version>1.50.35</version>
</parent>

<artifactId>apl-smc</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion apl-updater/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.apollocurrency</groupId>
<artifactId>apollo-blockchain</artifactId>
<version>1.50.33</version>
<version>1.50.35</version>
</parent>

<artifactId>apl-updater</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion apl-utils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.apollocurrency</groupId>
<artifactId>apollo-blockchain</artifactId>
<version>1.50.33</version>
<version>1.50.35</version>
</parent>

<artifactId>apl-utils</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

public final class Constants {

public static final Version VERSION = new Version("1.50.33");
public static final Version VERSION = new Version("1.50.35");

public static final String APPLICATION = "Apollo";
public static final String APPLICATION_DIR_NAME = "apl-blockchain";
Expand Down
2 changes: 1 addition & 1 deletion apl-vault-wallet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.apollocurrency</groupId>
<artifactId>apollo-blockchain</artifactId>
<version>1.50.33</version>
<version>1.50.35</version>
</parent>

<artifactId>apl-vault-wallet</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.apollocurrency</groupId>
<artifactId>apollo-blockchain</artifactId>
<version>1.50.33</version>
<version>1.50.35</version>
<packaging>pom</packaging>
<name>apollo-blockchain</name>

Expand Down

0 comments on commit 0f4b31f

Please sign in to comment.