I have a table named Article which contains 6 different values of partition key and under each partitions key there are 100's of entities, but under each partition key I want to retrieve only n entities back from table. So, I want to query such that it only returns 'n' random entities using partition key only?
To retrieve n random entities from azure table storage using partition key only.
841 Views Asked by rahul desai At
1
There are 1 best solutions below
Related Questions in AZURE-TABLE-STORAGE
- How to avoid a 404 when deleting batches from Azure Table Storage
- How to set network security group rules for azure storage services?
- Slow Azure Table Search and Insert Operations on small tables
- using IN(or similar) condition in an azure storage query
- Storing a DateTime value of DateTime.MinValue in azure table storage fails
- ELMAH error logging in azure storage
- Intermittent crashes in Azure Web Application
- How to handle continutation tokens when using CORS and talking to Azure Table Storage?
- Indexing in Azure table storage vs Google Appengine datastore
- Azure table storage exception handling
- Azure Stream Analytics partition key column duplicated in table storage
- Unreliable performance in Azure Table Storage when joining point queries together
- Stop Azure Tables treating strings as octal values
- Inserting data into azure table storage?
- How to select records where field is missing from an Azure Storage Table?
Related Questions in AZURE-TABLEQUERY
- Azure table query failing with bad request error
- Running a Contains operator in Azure Table Service linq query
- How can I fetch the last N entities in Javascript for a Azure storage table query
- Unable to find entities from table storage after inserting batches of 100
- AND operation using TableQuery.CombineFilters on a List
- Deserialize a DynamicTableEntity retrieved from Azure Table
- Azure logic apps Odata filter query with if statment on two columns
- Argument of type 'null' is not assignable to parameter of type 'TableContinuationToken'
- Found operand types 'Edm.DateTime' and 'Edm.String' for operator kind 'GreaterThanOrEqual'
- Azure Table Storage - 501 Not Implemented
- Azure table Storage - Table service Query to retrieve and return 10 entities till last entity
- Regarding Azure table design
- paging (ascendingly ordered) with azure table storage
- query rowkey with greater than in azure table storage
- Use TableContinuationToken as bookmark
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I think there is no direct solution. But you can simulate retrieving of random values by specifying random where conditions on
CustomKey.CustomKeyis technological field, it needed only for solving your problem and hasinttype. When you adding new item to Azure Table you can assign to this field random value between 0 and 100, for example. Then you can write something like this (based on this article):You will retrive some number of entities, if it will be more or equal your
n, just takenitems from it. If count of items will be less thenn, just repeat this operation untill you will have enought number of items.