Access Azure Table storage in a defined order

http://www.dotnetsolutions.co.uk/blog/chronological-query-pattern—windows-azure-table-design-patterns

Construct the rowkey as follows:

RowKey  = String.Format("{0:D19}", DateTime.MaxValue.Ticks - DateTime.UtcNow.Ticks );

This allows the data to be fetched by putting a row limit on the query.

Setting this to 20 will give the latest 20 items.

Leave a comment