-
Notifications
You must be signed in to change notification settings - Fork 153
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
typeorm: typeorm-store rework #293
base: beta
Are you sure you want to change the base?
Conversation
0915830
to
b44249d
Compare
b44249d
to
87edb33
Compare
modified: src/database.ts modified: src/store.ts modified: src/test/store.test.ts
This introduces a global cache. It's a welcome change that makes custom caches - a major source of bugs and complexity - unnecessary, but IMO it requires an interface rework. The key here is that a cache hit is so much cheaper than a cache miss that the user must be constantly aware of the cache contents to get good performance. The current interface is an attempt to make working with cache transparent, which makes it very easy to write code that performs poorly. Here are some examples:
Recommendations:
Other notes:
|
55a4dd0
to
77ace58
Compare
f0b16d8
to
7ee0a60
Compare
No description provided.