- Learning PostgreSQL 10(Second Edition)
- Salahaldin Juba Andrey Volkov
- 218字
- 2021-07-02 22:42:04
Semantic constraints
Integrity constraints or business logic constraints describe the database application constraints in general. These constraints are either enforced by the business logic tier of the application program or by SQL procedural languages. Trigger and rule systems can also be used for this purpose. For example, the customer should have at most one active service at a time. Based on the nature of the application, one could favor using an SQL procedural language or a high-level programming language to meet the semantic constraints, or mix the two approaches.
The advantages of using the SQL programming language are as follows:
- Performance: RDBMSs often have complex analyzers to generate efficient execution plans. Also, in some cases such as data mining, the amount of data that needs to be manipulated is very large. Manipulating the data using procedural SQL language eliminates the network data transfer. Finally, some procedural SQL languages utilize clever caching algorithms.
- Last minute change: For the SQL procedural languages, one could deploy bug fixes without service disruption.
Implementing business logic in database tier has a lot of pros and cons and it is a highly arguable topic. For example, some disadvantages of implementing business logic in the database is visibility, developers efficiency in writing code due to a lack of proper tools and IDEs, and code reuse.
- 反饋系統(tǒng):多學(xué)科視角(原書第2版)
- 輕松學(xué)Java
- 現(xiàn)代機(jī)械運(yùn)動(dòng)控制技術(shù)
- 大數(shù)據(jù)平臺(tái)異常檢測(cè)分析系統(tǒng)的若干關(guān)鍵技術(shù)研究
- Windows 7寶典
- Visual Basic.NET程序設(shè)計(jì)
- Google SketchUp for Game Design:Beginner's Guide
- 激光選區(qū)熔化3D打印技術(shù)
- Hands-On Dashboard Development with QlikView
- 嵌入式Linux系統(tǒng)實(shí)用開發(fā)
- 大數(shù)據(jù)案例精析
- 單片機(jī)C51應(yīng)用技術(shù)
- 大數(shù)據(jù):從基礎(chǔ)理論到最佳實(shí)踐
- Hands-On Artificial Intelligence for Beginners
- TensorFlow 2.0卷積神經(jīng)網(wǎng)絡(luò)實(shí)戰(zhàn)