sustc icon indicating copy to clipboard operation
sustc copied to clipboard

Another way to implement service?

Open dequeueing opened this issue 2 years ago • 1 comments

Describe your question

Hello reviewer.

  • Since we execute sql statements via JDBC, is it feasible that we preliminarily create views when we create tables (in that sql file), and then directly select infomation from the view using JDBC?
  • If it is viable, what would be the potential cost of it, especially when testing the performance of database?

Many thanks!

dequeueing avatar Dec 22 '23 16:12 dequeueing

  • that's allowed
  • it may make your program faster or not, you should do some benchmark by your self, like writing a benchmark step in the benchmark service to call an api

hezean avatar Dec 23 '23 09:12 hezean