mumu

Results comments of mumu

1. sync.LoadOrStore(key, new()) 可以保证查询和存储原子操作,缺点就是不管存不存在都会执行new 2. ```go g.Lock() obj, ok := g.objs.Load(key) if !ok { obj = new() g.objs.Store(key, obj) } g.Unlock() ```

Ok, I get it now — thanks for the detailed explanation! 👍 It makes sense that using --reload for relative imports ensures freshness after redeploys. And now I understand that...

It seems to be beter by using type Map; (node verison v14.9.0) ```javascript const process = require('process') console.log('before', process.memoryUsage()) console.time('test') // const o = {} const o = new Map();...

> 主键冲突 你是否有二开的菜单数据录入? 如果有自行排查, 上述文件在执行时未指定自增 id , 按照正常逻辑会自动递增不会报错主键冲突 没有录入其他数据,是执行默认的 migrate sql