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

不的中原因分析 #62

Open
mapserver2007 opened this issue Oct 28, 2024 · 1 comment
Open

不的中原因分析 #62

mapserver2007 opened this issue Oct 28, 2024 · 1 comment

Comments

@mapserver2007
Copy link
Owner

No description provided.

@mapserver2007
Copy link
Owner Author

馬の戦績の更新について、
latest raceDateをもたせる
・初回キャッシュ時にそのときのraceDateを保持
・2回目の更新があったとき、キャッシュのraceDateと違う場合データを更新する
 →currentのraceDateよりキャシュのraceDateが過去だった場合、更新する
 →currentのraceDateよりキャシュのraceDateが一致または未来だった場合、キャッシュを読み込む

例:イクイノックス
キャッシュ:ドバイシーマまでのキャッシュ(20230401)
宝塚記念後で新規分析(20230701)
→キャッシュのraceDateが過去なので更新する

キャッシュ:天皇賞までのキャッシュ(20231030)
宝塚記念のデータを再レンダリングする(20230701)
→キャッシュのraceDateは未来なのでキャッシュから読み込む
 →天皇賞じゃなく宝塚記念の場合は一致なので同様にキャッシュから読み込む

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant