Skip to content

Commit

Permalink
Bump version and update changelog (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lezek123 authored Jun 6, 2023
1 parent b6e19f6 commit 6f3c654
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 3 deletions.
44 changes: 44 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "orion",
"version": "2.2.0",
"version": "2.3.0",
"engines": {
"node": ">=16"
},
Expand Down

0 comments on commit 6f3c654

Please sign in to comment.