PartitionKey, RowKey ordering
-
viernes, 17 de septiembre de 2010 15:54
I'm trying to decide on a new data schema at present. And I'm trying to remember....
If I make a query across multiple partitionKeys, then in what order is query data returned - is everything returned sorted (partitionkey, rowkey) or is a merge done so that everything is returned ordered by (rowkey) across all relevant partitions?
e.g. if I were writing a blogging platform and I gave each blogger their own partition, and used the smarx-inverse-ticks for rowkey, then would I be able to get back a time ordered list of most recent blogs across all partitions?
ThanksStuart (who really should just write the test for this!)
- Cambiado DanielOdievichEditor martes, 28 de septiembre de 2010 22:34 forum migration (From:Windows Azure)
Todas las respuestas
-
viernes, 17 de septiembre de 2010 16:24Usuario que responde
The following is documented:
Query results are sorted by PartitionKey, then by RowKey. Ordering results in any other way is not currently supported.
This suggests you will get time-ordered lists for each user.
- Marcado como respuesta Allen Chen - MSFTModerator viernes, 24 de septiembre de 2010 7:58
-
viernes, 17 de septiembre de 2010 16:34
Thanks
Yeah - I kind of remembered some of the details after I'd sent it - I think the query gets sent to one partition master at a time - and each one then either returns results or a continuation.
I'd forgotten how tricky it was to stop thinking relationally! I'll go look at things from a different angle.
Before I architect too much, I wonder if there is any news anywhere on when secondary indicies might arrive? I wonder if I have to wait for PDC...
Thanks again
Stuart
-
viernes, 17 de septiembre de 2010 17:44Usuario que responde
Before I architect too much, I wonder if there is any news anywhere on when secondary indicies might arrive? I wonder if I have to wait for PDC...
No. In my experience Microsoft has been reluctant to preannounce any Azure functionality and especially any date by which it would become available.

