Eron Kelly SQL Server 产品管理部门产品市场营销总经理 几天前,我们宣布了发布 Azure SQL 数据库的灵活缩放公共预览版。新增的灵活缩放功能通过简化开发和管理,简化了扩展和缩小云应用程序的数据层的过程。基于行业标准的分区做法,灵活缩放提供的功能有
Eron
Kelly SQL Server 产品管理部门产品市场营销总经理
几天前,我们宣布了发布 Azure SQL 数据库的灵活缩放公共预览版。新增的灵活缩放功能通过简化开发和管理,简化了扩展和缩小云应用程序的数据层的过程。基于行业标准的分区做法,灵活缩放提供的功能有助于构建和维护应用程序, 使它们可以利用几个, 乃至成千上万个数据库。
新增功能通过 .NET 客户端库和可以托管的 Azure 服务模板提供,可以更灵活地进行开发,以满足应用程序的独特需求。根据客户的实际经验,使用客户端应用程序 API 是支持灵活缩放的理想选择,因为它们可以基于应用程序的独特需求更灵活地进行开发。
我们看到客户利用灵活缩放的分区做法支持以下关键场景:
- 大量 OLTP:通过采用数个乃至成千上万个数据库分区,使一个基于云的 OLTP 应用程序能够处理海量数据,并能够支持高端事务处理需求。
- 多租户 SaaS:横向扩展数据库支持多租户云应用程序,其中每个客户分配有自己的数据库以用于更高级隔离,或其中租户基于位置或负载平衡共享数据库。也可以选择纵向伸缩单个数据库,以满足每个客户的个性化吞吐量需求。
- 持续数据收集:通过定期为新日期范围创建新分区,旨在捕获远程监控数据和物联网的数据引入模式的应用程序可以轻松跨时间进行缩放。较新的分区可以使用较高的服务层,并在使用量减少后逐渐缩小。
Microsoft 非公开预览版计划的客户已部署灵活缩放,并看到了巨大的价值。
“对于我们的业务而言,决定利用 Microsoft 基于框架的方法来实现灵活缩放 API 无疑是一种显而易见的选择。我们服务大规模的石油和天然气行业客户的能力取决于我们能否持续高效地管理并大规模交付不断增长的客户数据需求。由于我们处理的数据很大,我们的应用程序从新增分区功能中受益良多,因此我们可以轻松地移动数据,并确保最佳性能。我们能够直接实施灵活缩放,利用标准化的框架在所有应用程序上管理分区,并制定解决方案用于持续扩展平台。”Fielding Systems 的 CEO Shawn Cutter 称。
灵活缩放支持称作分区的久经考验的数据库缩放策略,允许开发者构建一个“合同”,定义不同的数据片位于数据库集的哪个位置。这使应用程序能够使用 ADO.NET 编程模型的简单扩展程序,轻松地自动将事务指向相应的数据库分区并跨一个或多个分区执行查询。
灵活缩放还支持在分区之间协调移动数据,以拆分或合并不同数据库之间的数据范围,满足诸如将繁忙的租户拉入专门的分区等常见方案。这种拆分合并服务通过一个可下载的软件包提供,客户可以在自己的订阅中将其部署为 Azure 云服务。
我们也很高兴地宣布Federations 至灵活缩放迁移实用程序现作为预览版的一部分提供。该实用程序将帮助当前使用Federations的客户将其应用程序迁移到灵活缩放,而无需执行任何数据移动。在此提醒,Federations 功能将随同Web 版和商业版一起于 2015 年 9 月引退。
立即试用灵活缩放预览版并观看频道 9 视频!
本文翻译自:http://azure.microsoft.com/blog/2014/10/02/introducing-elastic-scale-preview-for-azure-sql-database/

The main difference between MySQL and SQLite is the design concept and usage scenarios: 1. MySQL is suitable for large applications and enterprise-level solutions, supporting high performance and high concurrency; 2. SQLite is suitable for mobile applications and desktop software, lightweight and easy to embed.

Indexes in MySQL are an ordered structure of one or more columns in a database table, used to speed up data retrieval. 1) Indexes improve query speed by reducing the amount of scanned data. 2) B-Tree index uses a balanced tree structure, which is suitable for range query and sorting. 3) Use CREATEINDEX statements to create indexes, such as CREATEINDEXidx_customer_idONorders(customer_id). 4) Composite indexes can optimize multi-column queries, such as CREATEINDEXidx_customer_orderONorders(customer_id,order_date). 5) Use EXPLAIN to analyze query plans and avoid

Using transactions in MySQL ensures data consistency. 1) Start the transaction through STARTTRANSACTION, and then execute SQL operations and submit it with COMMIT or ROLLBACK. 2) Use SAVEPOINT to set a save point to allow partial rollback. 3) Performance optimization suggestions include shortening transaction time, avoiding large-scale queries and using isolation levels reasonably.

Scenarios where PostgreSQL is chosen instead of MySQL include: 1) complex queries and advanced SQL functions, 2) strict data integrity and ACID compliance, 3) advanced spatial functions are required, and 4) high performance is required when processing large data sets. PostgreSQL performs well in these aspects and is suitable for projects that require complex data processing and high data integrity.

The security of MySQL database can be achieved through the following measures: 1. User permission management: Strictly control access rights through CREATEUSER and GRANT commands. 2. Encrypted transmission: Configure SSL/TLS to ensure data transmission security. 3. Database backup and recovery: Use mysqldump or mysqlpump to regularly backup data. 4. Advanced security policy: Use a firewall to restrict access and enable audit logging operations. 5. Performance optimization and best practices: Take into account both safety and performance through indexing and query optimization and regular maintenance.

How to effectively monitor MySQL performance? Use tools such as mysqladmin, SHOWGLOBALSTATUS, PerconaMonitoring and Management (PMM), and MySQL EnterpriseMonitor. 1. Use mysqladmin to view the number of connections. 2. Use SHOWGLOBALSTATUS to view the query number. 3.PMM provides detailed performance data and graphical interface. 4.MySQLEnterpriseMonitor provides rich monitoring functions and alarm mechanisms.

The difference between MySQL and SQLServer is: 1) MySQL is open source and suitable for web and embedded systems, 2) SQLServer is a commercial product of Microsoft and is suitable for enterprise-level applications. There are significant differences between the two in storage engine, performance optimization and application scenarios. When choosing, you need to consider project size and future scalability.

In enterprise-level application scenarios that require high availability, advanced security and good integration, SQLServer should be chosen instead of MySQL. 1) SQLServer provides enterprise-level features such as high availability and advanced security. 2) It is closely integrated with Microsoft ecosystems such as VisualStudio and PowerBI. 3) SQLServer performs excellent in performance optimization and supports memory-optimized tables and column storage indexes.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Dreamweaver Mac version
Visual web development tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.
