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.
843 Views Asked by rahul desai At
1
There are 1 best solutions below
Related Questions in AZURE-TABLE-STORAGE
- Is there a way to view traffic logs for Azure Storage for connections that got blocked by Firewall settings from Networking pane?
- Azure Table REST API / 403 (Server failed to authenticate the request. Works in Postman but not on static web page
- Copy data activity failing when entering the table name dynamically in sink dataset
- can we keep/install two versions of azcopy in the windows system
- Azure Table Partition Key for task management
- When appending to a delta table in an Azure ADLS Gen 2 storage container only ~1/6th of the data gets written
- How to use Date as partition key in Azure table?
- Azure Table REST API - Make sure the value of Authorization header is formed correctly including the signature
- Azure Container App not authorized to access Storage Account Table
- Azure Table Storage submitTransaction: AuthorizationPermissionMismatch exception
- Azure data tables python SDK does not work on read. "NotImplemented"
- Maximum number of items in a transaction using Azure.Data.Tables
- Azure Table Storage SAS token pagination
- update storage table from azure function
- How to retrieve logging config in Azure Storage Blob, Queue and Table Service with Python Azure SDK
Related Questions in AZURE-TABLEQUERY
- Azure data tables python SDK does not work on read. "NotImplemented"
- Unable to update a retrieved Azure storage table entity - "The specified resource does not exist"
- Filtering the Data storage table using PartitionKey and Date time
- Struggling with syntax to mock Azure.Data.TableClient.Query()
- Azure.Data.Tables QueryAsync filtering erring with multiple filter conditions
- Uppdate an entity in table storage
- Query Azure table storage for faster retrieval of data in C#
- Migrate from Microsoft.WindowsAzure.Storage.Table to Azure.Data.Tables - deserialization issues
- Azure storage table: The remote server returned an error: (400) Bad Request when searching in a column
- How to specify a Take value with TableClient.QueryAsync
- Optimize retrieving rows from Azure Table using partition key and row key with Range
- Azure table storage: concurrent updates overwritting previous changes
- Is TableQuery.GenerateFilterCondition no longer available in Azure.Data.Tables?
- how to unit tests methods that contain calls to CreateQuery<DynamicTableEntity>()
- Powershell: Pass result of Get-AzTableRow to function
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 # Hahtags
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.