Home  >  Q&A  >  body text

java - 牵扯数据库的开发在sql语句全放在开发语言中和在数据库中写好存储过程如何寻找平衡?

巴扎黑巴扎黑2716 days ago623

reply all(2)I'll reply

  • 阿神

    阿神2017-04-17 13:03:11

    General WEB programs now choose the former, and they also tend to use single-table queries.
    Database stored procedures involve difficulty in development and debugging, and the performance optimization effect of stored procedures is not obvious. Moreover, a cache layer and middleware may be added between the application layer program and the database layer. Therefore, it is better to use SQL independently in the application layer code

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 13:03:11

    It is generally not recommended to use stored procedures

    reply
    0
  • Cancelreply