简体   繁体   English

数据库或Derby中的外部jar中的过程

[英]Procedures in a database or in external jar in Derby

The document DerbySQLroutines explains that Derby procedures can be either stored in a database, using SQLJ.INSTALL_JAR, or kept in an external JAR file. DerbySQLroutines文档解释了Derby过程可以使用SQLJ.INSTALL_JAR存储在数据库中,也可以保留在外部JAR文件中。

What would be advantages of each approach? 每种方法的优点是什么?

Thank you. 谢谢。

If it's baked into the database, then the database is usable w/o extra jars. 如果将其烘焙到数据库中,则该数据库可以使用而无需额外的jar。 The disadvantage of that is that you'd have to go through the effort of getting the code into the database. 这样做的缺点是您必须努力将代码放入数据库。 It's sort of a pay now or pay later trade off. 现在有点付款,还是以后需要折衷。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM