Tag: 蓝色表格存储

Azure表存储性能

我应该以多快的速度期待Azure存储的性能? 我在getEntity,updateEntity等基本操作上看到〜100ms。 这家伙似乎正在得到4ms,这使得这里看起来真的是错了! http://www.troyhunt.com/2013/12/working-with-154-million-records-on.html 我正在使用azure-table-node npm插件。 https://www.npmjs.org/package/azure-table-node 一个简单的getEntity调用需要~90ms: exports.get = function(table, pk, rk, callback) { var start = process.hrtime(); client().getEntity(table, pk, rk, function(err, entity) { console.log(prettyhr(process.hrtime(start))); … azure色的存储模块似乎更慢: https://www.npmjs.org/package/azure-storage var start = process.hrtime(); azureClient.retrieveEntity(table, pk, rk, function(err, entity) { console.log('retrieveEntity',prettyhr(process.hrtime(start))); … retrieveEntity 174 ms

Azure表存储只支持作为数据types的string?

我试图插入数据到一个Azure表,但一切都转换为string。 例如,我插入数字/布尔值 var test={ PartitionKey : '4', RowKey : '2', foo: 4, bar: true }; tableService.insertEntity('mytable', test, …); 但 tableService.queryEntity('mytable', '4', '2', …); 回报 { id: 'http://127.0.0.1:10002/devstoreaccount1/identid(PartitionKey=\'4\',RowKey=\'2\')', link: 'identid(PartitionKey=\'4\',RowKey=\'2\')', updated: '2012-12-12T10:26:44Z', etag: 'W/"datetime\'2012-12-12T10%3A26%3A44.547Z\'"', PartitionKey: '4', RowKey: '2', Timestamp: '2012-12-12T10:20:44.897Z', foo: '4', bar: 'true' } 我怎样才能指定一个数据types? 好的,刚刚在SDK中看到,您可以指定数据types var test={ PartitionKey : '4', RowKey : '2', foo: […]