存储和检索json对象的最佳方法 [英] Best way to store and retrieve json objects

查看:95
本文介绍了存储和检索json对象的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我们今天在Azure SQL数据库的表中有大约100万个json对象。
我们每小时更新大约10-30000条记录,而这需要通过rest API访问以公开数据。
每个json对象大约为5-10 kb,存储在varchar(max)字段中。



不幸的是,执行json对象的所有更新是非常繁重的工作,它需要大量的DTU /容量。
因​​此我们想知道它是否是正确的将对象保存在Azure SQL数据库中的解决方案,还是有人建议尝试的其他方式?




提前致谢。

Hi,

We have today about 1 million json objects in a table in an Azure SQL database. We update about 10-30000 records per hour while this needs to be accessible via a rest API to expose the data. Each json object is about 5-10 kb and is stored in a varchar (max) field.

Unfortunately, it's very heavy job to execute all the updates of the json objects, it demands a lot of DTU / capacity. We are therefore wondering if it's the right solution to save the objects in a Azure SQL database or is there any other way someone can recommend trying?


Thanks in advance.

推荐答案

您是否考虑过使用无SQL数据存储(例如CosmosDB)?

Have you considered using a no-SQL data store instead (e.g. CosmosDB)?

hth

Marcin

hth
Marcin


这篇关于存储和检索json对象的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆