v0.4.0
版本发布时间: 2022-04-10 14:57:09
gorse-io/gorse最新发布版本:v0.4.15(2024-01-10 12:44:45)
Features
- Support MongoDB as
cache_store
(#406). - Support MySQL as
cache_store
(#415). - Support PostgresSQL as
cache_store
(#414).
Fix
- Fix typos in Swagger spec (#405) by @europaer.
- Unify timezone in ClickHouse (#417).
- Fix inserting duplicate cache rows in Postgres (#417).
- Fix item timestamp modification (#417).
Performance
- Optimize inserting users/items/feedbacks (#411).
Action | Cache | Data | Before | After |
---|---|---|---|---|
Insert 1,000 users | Redis | MySQL | 75ms | 38ms |
Insert 1,000 items | Redis | MySQL | 324ms | 32ms |
Insert 1,000 feedbacks | Redis | MySQL | 248ms | 42ms |
BREAK CHANGES
- New config file specification and default values are introduced in v0.4.0 (#418).
- The
write-back-delay
parameter ofGET /api/recommend/{user-id}
requires time unit now. For example:
curl -X GET "http://172.18.0.3:8087/api/recommend/zhenghaoz?write-back-type=read&write-back-delay=10m&n=10" \
-H "accept: application/json" \
-H "X-API-Key: 19260817"