Fastest way of querying for latest items in a Azure table?

后端 未结 4 1802
无人及你
无人及你 2020-12-09 11:03

I have a Azure table where customers post messages, there may be millions of messages in a single table. I want to find the fastest way of getting the messages posted within

4条回答
  •  一个人的身影
    2020-12-09 11:47

    The Primary key for Table is the combination of PartitionKey and RowKey(which forms a clustered index).

    In your case, just go for RowKey instead of ParitionKey(provide a constant value for this).

    You can also follow the Diagnostics approach, like for every ten minutes create a new Partition Key. But this approach is mainly for requirements like Archieving/Purging etc.,

提交回复
热议问题