-
Notifications
You must be signed in to change notification settings - Fork 64
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
Suggestion: provide doc about DB config for read performance #195
Comments
@PikachuEXE I'm working on a basic blog post integrating Solid Cache with a Rails + Postgres app. What would you like to see on read performance? For example, do you mean for Did you have other read operation slowness or optimizations in mind? |
I think this gem is quite new to people and there are mainly 2 cases (at first)
Case (1) could be more difficult to "optimize" (I generally avoid doing that even in redis) so I expect some info for (2) The schema and indexes shouldn't be a concern for users (provided by gem and should not be different per user) I have asked on reddit before and you can check some of the answers for what I expect |
Why? Are there any performance issues out of the box? If its really about tweaking and maximizing then it might depend a whole lot on your individual set up, e.g. DB version, CPU/RAM/disk performance, number of instances, usage patterns etc |
@AxelTheGerman Agree best to hold off until there's significant data and query volumes for solid cache data, before getting into database tuning. Even then, it will depend on the available system resources and how to allocate them, including memory, CPU etc. @PikachuEXE With that said above, I've published the post I mentioned earlier with the basics of Solid Cache and PostgreSQL, and did get into some generic server instance tuning guidance, considering read and write optimizations. I'm not intending for this to be directly related to your issue here as documentation for solid cache, in part because it's specific to PostgreSQL, however I wanted to share it for you or anyone else that's interested in exploring these kinds of optimizations to see what's possible. I'm happy to receive any feedback or questions. I'm eager to see how solid cache is adopted, and to learn about big deployments with large amounts of data and query volume in cache. |
@andyatkinson
From https://www.postgresql.org/docs/current/sql-createtable.html
I think
Do you mean I think there are more possible optimizations like longer checkpoint distance & |
Hi @PikachuEXE. I rushed this out a bit, so I appreciate you reading it and providing corrections and additions. I've incorporated your feedback and credited you at the end of the post. I'll take one more pass over it, but here's a summary of changes:
Thanks! |
If users don't know how to make the read performance faster via config (besides gem config) it's hard to even try it out
I am using PSQL but there is no doc for MySQL too (let's include doc for both?)
The text was updated successfully, but these errors were encountered: