Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Overcoming Windows Azure Sql Database 150 gb size limitation

SQL Azure has a database size limit of 150 gb. I have read through their documentation several times and also searched online but I'm unclear about this: Does using federations allow a developer to grow beyond a 150 gb data base? For example can I have several 150GB federation members.

If not, how can I handle a database larger than 150 gb on Windows Azure?

basically, How do I scale out beyond 150 gb on Windows Azure

If theres no other way is RDS a good alternative(share any other alternatives)

like image 942
havokentity Avatar asked Sep 12 '12 19:09

havokentity


People also ask

What is the maximum limit of database size available for Azure SQL DB?

Published date: April 27, 2022. Data storage limits in Azure SQL Database have increased from 1.5 TB to 2 TB for single databases and elastic pools configured with 8 and 10 vcores.

How do I increase the size of my SQL database in Azure?

You can also change the size of the database through the Azure SQL portal. Simply choose the database and go to the scale tab and select the size you want.

What happens when the SQL Azure database reaches maximum size?

When data space used reaches the maximum data size limit, either at the database level or at the elastic pool level, inserts and updates that increase data size fail and clients receive an error message. SELECT and DELETE statements remain unaffected.

What is the size of SQL database in Azure?

Azure SQL DB shows max size of 30 GB with only about 4 GB in use for the DB size in Azure portal.


1 Answers

Currently it is not possible to have a single database larger than 150G.

The only approach is to either split the data into multiple databases, one account can have up to 149 user databases plus the master DB, or use SQL Azure Federations. Currently, if I am not mistaken, the total number of Federations supported is Int16.MaxValue - 1. Each federation is actually a separate database, transparent to the developer, which can be up to 150GB.

However, SQL Azure Federations has its own pros and cons, along with some data access layer re-factoring. If you are interested you may check out these cool videos on SQL Azure Federations:

  • Building Scalable Apps with SQL Azure
  • Using SQL Azure Database Federations

UPDATE

I will not completely agree with @ryancrawcour. What he explains is just the peak of the iceberg lying bellow the water. The amount of required re-factoring really depends on how data is consumed from the application. I will just mention a few factors for considerations (which are not complete picture at all). Consider any of the following:

  • Data that is common for all federations (how you get this data)
  • Stored proc, that post-processes data - you have to iterate in each and ever federation member and execute that stored proc. There is no way to execute the Stored proc once and process data in all the federations.
  • Aggregate data, which is spread across more than 1 federation member
  • List data from more than one federation member.

These are just few operations that you will need to consider, and that does not require "just change in connection string and execute one use federation ..." before each query. Actually using SQL Azure Federations you don't need to change the connection string at all. It is all the same SQL Azure connection string. The "USE FEDERATION ..." statement is what you have execute before each query. But it is way not just the only thing. And how about if one is using EntityFramework (model first, or code first, or whatever). Things get even more complicated and need real understanding of SQL Azure Federations.

I would say that SQL Azure Federations is different way of thinking about data, about modelling and normalizing.

UPDATE 2 - new Database sizes announced by Microsoft

As of 03. April 2014 the maximum size for a single Database has been increased to 500GB. The only available information to date is here. Be aware that the management portal still doesn't show this option (as of Today and now: 4. Apri 2014, 15:00 GMT+0:00).

like image 199
astaykov Avatar answered Oct 13 '22 20:10

astaykov