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

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

  •  
  •   Achilless · 2019 年 12 月 26 日 · 1017 次点击
    这是一个创建于 2303 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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   ·   Solana   ·   913 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 20:43 · PVG 04:43 · LAX 13:43 · JFK 16:43
    ♥ Do have faith in what you're doing.