whereabouts
V2EX  ›  问与答

MongoDB 用 bson.binary 类型的二进制数据做_id 主键 会有性能问题吗 数据量几亿

  •  
  •   whereabouts · Sep 26, 2018 · 1549 views
    This topic created in 2983 days ago, the information mentioned may be changed or developed.
    原始数据其实是十六进制的哈希值,转换成 int 的话太长了就算是 128 位的数据类型也存不了。
    转换成二进制的话,不知直接作为_id 主键存入 MongoDB 会不会有性能问题,数据量在 10 亿左右。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4724 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 03:22 · PVG 11:22 · LAX 19:22 · JFK 22:22
    ♥ Do have faith in what you're doing.