Cloud Cover Episode 10 - Table Storage API

Play Cloud Cover Episode 10 - Table Storage API

The Discussion

  • User profile image
    DaveSn

    The biggest issue I have with Azure Table Storage is the lack of string comparison operators.

    If I can do
    .Where(a=>a.Age > 21)

    and

    .Where(a=>a.Name.CompareTo("Dave"))

    then why can't I do

    .Where(a=>a.Name.ToLower().Contains("dave"))

    Is this an architectural constraint or rather an implementation limitation?

    If it's an implementation limitation, then I can hope that it will be fixed in a future release.

    If it's architectural, then I will have to find an alternative solution such as SQL Azure.

  • User profile image
    dunnry

    Hi DaveSn,

     

    Currently, this is a limitation in the actual storage service.  The LINQ provider eventually boils down to a URI with some syntax that is or isn't supported on the service head.  It turns out that certain operations that are supported in relational sources are not supported in Windows Azure tables.  Your specific question would entail a full-text search to be performed on an arbitrary column in Windows Azure.  This is not currently supported (there is no LIKE operation).  This limit might be removed over time as more features are added to the service.

     

    If you really need full text search capability over your data - take a look at the Lucene implementation here:

     

    https://code.msdn.microsoft.com/AzureDirectory

     

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.