V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Achilless
V2EX  ›  问与答

2w 多个活动 json,写在文件好还是 redis 好

  •  
  •   Achilless · 2019-12-26 10:01:59 +08:00 · 751 次点击
    这是一个创建于 1545 天前的主题,其中的信息可能已经有所发展或是发生改变。

    2w 多个 json,每个 json 是这样 'devicetype': 'pp', 'deviceno': 'xxxx.xxxx.xxxx', 'devicename': '0000.0000.0000', 'devicemac': '1111.1111.1111', 'sapno': '', 'lanip': '2.2.2.2', 'ip': 4875673894, 'factory': 'xxx', 'modelnum': '', 'agentver': '', 'systemver': '', 'heartbeattime': 1577264228886, 'isonline': 1, 'onlinelength': 1017, 'd_busistate': [{'busitype': 'onlineuser', 'totalcount': 0}]}

    这些 json 是实时更新的,一遍遍的轮询。感觉 2w 多个不是很多,有必要入 redis 么。

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3678 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 04:53 · PVG 12:53 · LAX 21:53 · JFK 00:53
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.