whereabouts
V2EX  ›  问与答

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

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