Hi, I'm not very seasoned with Rust so I have a few questions about general techniques and methods.
- In Rust, it seems that I would need to clone string to re-use them later, is that a appropriate approach ?
- For Diesel, what is the proper way to handle data insertion and data updating ? (Additionally, data upserting)
- For caching, what is the suitable approach for it, for this specifically, it is for situation where the data is shown on a front-end html table, which currently fetches data from database directly on HTTP API call, which on further observation, successfully soft-locks the database access pool one or two times already. Thus, what should I do to replace direct database fetch?