diff --git a/CHANGELOG.md b/CHANGELOG.md index 46d332caa..ff8c67a51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,47 @@ +# 2.3.0 + +### Features: +- **Change:** The video relevance score formula has been updated. Now `Video.publishedBeforeJoystream` can be taken into account when calculating the value of the `newness` parameter. The new formula for `newness` is: + ``` + -(dsPOJ * jcw + dsPBJ * ycw) / (jcw + ycw) + + Where: + dsPOJ - days since published on Joystream (Video.createdAt) + jcw - joystream creation weight + dsPBJ - days since published before Joystream (Video.publishedBeforeJoystream) + ycw - YouTube creation weight + ``` + +### Config values: +- **Change:** `RELEVANCE_WEIGHTS` config value now has a new format: + ```diff + [ + 1, # newness weight, + 0.03, # views weight + 0.3, # comments weight + 0.5, # reactions weight + + [7,3] # [joystream creation weight, YouTube creation weight] + ] + ``` + If the value of `[joystream creation weight, YouTube creation weight]` is not provided, it is set to `[7,3]` by default. + +### Schema/API changes: +- **Change:** `setVideoWeights` operator mutation now accepts 2 new arguments: `joysteamTimestampSubWeight` and `ytTimestampSubWeight` + +### Mappings: +- `videoRelevanceManager` is now used in `processVideoCreatedEvent` to calculate `videoRelevance` (to avoid code duplication) + +### DB Optimalizations: +- Changes in `postgres.conf` to improve query execution time in current production deployments: + - Turn off JIT compilation which was usually uneffective + - Lower `random_page_cost` to `1.0`, as the database still fits into the memory + - Increase `shared_buffers` to `2GB` +- New indexes added to `db/migrations/2100000000000-Indexes.js` (`auction_type`, `member_metadata_avatar`, `owned_nft_auction`) + +### Fixes: +- `scripts/generate-schema-file.sh` has been made executable w/o bash to avoid error during docker build +- The issue w/ _Offchain State_ not being imported if the `export.json` contained empty `update` tables (an error was thrown in this case) has been fixed + # 2.2.0 ### Features: diff --git a/package-lock.json b/package-lock.json index cef50ce8c..2ae46207f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "orion", - "version": "2.2.0", + "version": "2.3.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "orion", - "version": "2.2.0", + "version": "2.3.0", "hasInstallScript": true, "dependencies": { "@joystream/js": "^1.4.0", diff --git a/package.json b/package.json index ca5444c41..d85e46293 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orion", - "version": "2.2.0", + "version": "2.3.0", "engines": { "node": ">=16" },