Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用RESTAPI查询Azure表存储_Azure_Azure Table Storage_Azure Tablequery - Fatal编程技术网

使用RESTAPI查询Azure表存储

使用RESTAPI查询Azure表存储,azure,azure-table-storage,azure-tablequery,Azure,Azure Table Storage,Azure Tablequery,我正在尝试使用RESTAPI从azure数据表检索数据 https://<service-url>/Customers(PartitionKey='MyPartition') https:///Customers(PartitionKey='MyPartition') Api错误与无效数据一起消失 如果我同时添加RowKey和PartitionKey之类的东西。它起作用了 https://<service-url>/Customers(PartitionKey='My

我正在尝试使用RESTAPI从azure数据表检索数据

https://<service-url>/Customers(PartitionKey='MyPartition')
https:///Customers(PartitionKey='MyPartition')
Api错误与无效数据一起消失

如果我同时添加RowKey和PartitionKey之类的东西。它起作用了

https://<service-url>/Customers(PartitionKey='MyPartition',RowKey='MyRowKey1')
https:///Customers(PartitionKey='MyPartition',RowKey='MyRowKey1')
是否需要传递RowKey

如果我只想从一个分区中检索所有数据呢。 我知道,我们可以在查询参数中添加$filter,但这不会导致性能问题吗

请分享你的想法


谢谢

是,使用此格式时,需要同时指定
PartitionKey
RowKey
https:///Customers(xxx)

当在查询中使用
$filter
时,根据我的测试(大约100条记录),在时间消耗上没有更多差异。我还尝试通过指定
PartitionKey
来使用
SDK
进行查询,我可以看到它在后端自动使用
$filter
(通过使用该工具)