Golang: Separate lock for each map key

后端 未结 0 511
孤城傲影
孤城傲影 2021-02-08 17:20

I have a map (entities) where the key is a string and the value is a struct. Building that struct is an expensive operation because it has to go to the database to load the data

相关标签:
回答
  • 消灭零回复
提交回复
热议问题