Support secondary Indexes
Need to be able to sort on something other than the rowkey
We understand this is a top customer ask and as such it is currently on our backlog to be prioritized. We will update when the status changes.
Is it being worked on?
آموزش فن بیان و مهارت های ارتباطی commented
We absolutely need this. thanks for sharing. http://www.behtarinbayan.ir
Mani Gandham commented
Azure Table Storage is a key/value store (sometimes referred to as wide-column stores), similar to HBase, Cassandra, DynamoDB, BigTable, and others. The whole architecture is based around a sorted hashmap with partition and row keys, and that's where the scale and performance comes from. Secondary indexes do not really fit in this model.
If you need secondary indexes then you'll likely have to do it yourself. Some providers automate this (like AWs DynamoDB) and others build a new offering on top (like Google Cloud Datastore). It seems Azure went with the extreme option via CosmosDB which is a full database service that can be accessed over the table API, although at that point it would probably better to just use the native document store interface and get all the richness. Either way, that's probably the only path forward if you don't want to manage indexes yourself.
Scott Helme commented
I guess that the response to this will now be to use Azure Cosmos: https://docs.microsoft.com/en-us/azure/cosmos-db/introduction
This would awesome and bring this service to the premier league. Having the secondary indexes managed by the service makes it incredibly useful for so many different use cases and also for developers with different skills.
Frank Szendzielarz commented
Agree with @Anonymous below. Secondary indexes would really help, but in my experience really committing to ATS and thinking hard about the problem usually (again, in my experience) leads to solutions that make sense and do not need the additional indexes. I think the main benefit of the secondary indexes would be making it much more adoptable and requiring much less of a leap of faith.
ATS is still a great solution that works well. It is quite unique compared to what AWS and Google offer.
Hemant C Sharma commented
How is this coming along? Will be very useful indeed....
Steffen Gammelgård commented
Hope the secondary index is still coming.
Azure Table Storage is an immensely powerful platform, and is already an exceptionally cost effective NoSQL database for certain kinds of applications.
Being able to add a secondary index would drastically reduce the complexity and the amount of redundant data in certain scenarios and would make an already awesome platform relevant for even more projects.
I too have used index tables to get secondary indicies and sometimes that would still be necessary to allow for efficient partitioning, but having a second index still seems like it would be very useful!
While I agree that built-in secondary indexes would be nice, in most cases it's better to consider indexes on a case-by-case basis and implement the index differently depending on your queries and their frequency. Information on creating your own secondary indexes can be found here https://msdn.microsoft.com/en-us/library/dn589791.aspx
+1 on Inattention and Neglect.
And with the evolution of discussion on this, it has become clear that to base critical software on top of Azure Table Storage with any needs beyond simple distributed partially sorted Hashtable is pointless; indeed, I can no longer trust UV as a channel where roadmap about these features is actually accurately communicated.
No, AIS is not a solution to this. I do not want an index that may, or may not be in an updated state. Heck, I am even willing to build my own index! Just let me grab multiple non-contiguous rows (by RowKey) in one request!
But more importantly than even that, decide if UserVoice is actually a channel that you want to use to engage with your customers. If it is, announcing at your conference that a feature is coming, then ignoring it for 2 years, then another 3 years before 2 years after that saying it actually is not coming, more than likely, is incredibly insulting.
inattention and neglect is the perfect summary of ATS. Microsoft, up the price or do whatever, just do something.
SSD-backed storage + secondary indexes is a no-brainer.
Appreciate the workaround. But the consensus that ATS has become - through inattention and neglect - an also-ran is hard to shake. Not sure how I could recommend that anyone build a solution on it at this point. At most, I would recommend ATS as a read-only data store, where you put data that you hope to never see again but aren't quite willing to say goodbye to.
Aaron, DocumentDB is not a replacement, it is a totally different beast and not a key-value store such as Table Storage. Also DocumentDB is not portable (yet at least) and gives you a lock-in to the public Azure cloud. Table Storage is portable through Azure Stack.
I dream and hope MS is picking up Table Storage again and gives us Premium (SSD-backed) and with secondary indexes. There's really no reason on this good earth they shouldn't do this!
Aaron Lawrence commented
I would agree with Mike Olsen that it is a BAD IDEA to build a new application on Azure Table Storage, as Microsoft appear to be deprecating it (although it's not completely clear what they regard as a replacement, DocumentDB seems most likely)
Regarding table storage, I've also noticed that in the new portal when you look at diagnostics config in WebApps, there's only File Storage and Blob Storage as options, while in the classic portal you also have Table Storage as an option.
Even more, I've noticed that the internal logging in WebJobs via WebJobs Dashboard seems to have moved from using Table Storage to using Blob Storage - but that may be for any number of reasons, of course.
Anyways, I wouldn't recommend table storage as a long-term option for anything new for these reasons. And of course it's hard to use without any secondary indexing.
Mike Olson commented
The writing's on the wall folks. It's been what, 3 years since this was supposedly added to their roadmap? When was the last time Microsoft made *any* real improvements to Table Storage, besides putting a ton of breaking changes in the SDK that required hundreds of hours of dev to support?
Azure Table Storage is old news and is being ushered unceremoniously out the door. It's time for us to give in and move to DocumentDB, Azure SQL, or one of the dozen new storage services that Microsoft is actually putting effort into. Or just do what I've been doing and just start storing your data in flat files on Blob Storage, since for a lot of cases that's easier to code, more performant and more flexible.
At least Microsoft isn't slowly moving us away from Cloud Services... oh wait.
Any comments from Microsoft admins ?
Aaron Lawrence commented
It's difficult to use ATS as it stands for anything real. We built our own indices in SQL, which of course introduces exciting new consistency issues. One index is just too little - basically that gives you the ability to move data in and out by an identifier, but not do anything else with it.
We absolutely need this! Due to the high cost and throughput limitations of DocumentDB it is not a viable alternative to having secondary indexes in table storage.