官术网_书友最值得收藏!

SQL

First off, we will cover SQL-related issues. So, if you're not using a relational database, you can skip this bit; for example, if you use a NoSQL store or a document database instead. Relational databases are a very mature technology and are flexible in their uses. However, it is essential to have a basic knowledge of the SQL syntax and how databases work in order to use them effectively. Even Azure Cosmos DB (previously known as DocumentDB) has an optional SQL API.

It can be tempting when using an O/RM tool, such as Entity Framework (EF), to ignore SQL and stay in the C# world; however, a competent developer should be able to write a high-performance SQL query. Ignoring the realities of how a database engine works will often lead to performance issues. It's easy to write code with an O/RM tool that's too chatty with the database and issues far too many queries for an operation. Not having the correct indexes on a table will also result in poor performance.

During development, you may not notice these mistakes, unless you use tools to identify the inefficient events that occur. Here, we will show you a couple of ways of doing this.

主站蜘蛛池模板: 泸溪县| 嘉鱼县| 香港 | 大同县| 福海县| 河池市| 五常市| 宜城市| 天柱县| 海兴县| 鄂州市| 金川县| 黎城县| 衡南县| 广安市| 枞阳县| 望江县| 麦盖提县| 蕉岭县| 府谷县| 集贤县| 将乐县| 抚顺县| 大丰市| 栾川县| 通山县| 大名县| 博白县| 普安县| 会同县| 闽侯县| 柳林县| 武安市| 神农架林区| 新源县| 祁东县| 桐城市| 修文县| 阿拉善左旗| 平顶山市| 黎川县|