How do I retrieve multiple types of entities using a single query to Azure Table Storage?

后端 未结 4 979
伪装坚强ぢ
伪装坚强ぢ 2021-02-09 16:44

I\'m trying to grasp how Azure table storage works to create facebook-style feeds and I\'m stuck on how to retrieve the entries.

(My questions is almost the same as http

4条回答
  •  伪装坚强ぢ
    2021-02-09 16:58

    Another option, of course, is to have only a single entity type per table, query the tables in parallel and merge the result sorted by timestamp. In the long run this may prove to be the more prudent choice with reference to scalability and maintainability.

    Alternatively you would need to use some flavor of generic entities as outlined by ‘dunnry’, where the non-common data is not explicitly typed and instead persisted via a dictionary.

    I have written an alternate Azure table storage client, Lucifure Stash, which supports additional abstractions over azure table storage including persisting to/from a dictionary, and may work in your situation if that is the direction you want to pursue.

    Lucifure Stash supports large data columns > 64K, arrays & lists, enumerations, composite keys, out of the box serialization, user defined morphing, public and private properties and fields and more. It is available free for personal use at http://www.lucifure.com or via NuGet.com.

    Edit: Now open sourced at CodePlex

提交回复
热议问题