feat: 优化设备位置冲突检测和前端虚拟滚动
为设备表添加复合索引优化位置冲突检测性能 在设备位置检查中添加悲观锁防止竞态条件 添加 react-window 和 react-virtualized-auto-sizer 支持虚拟滚动
This commit is contained in:
@@ -103,6 +103,9 @@ const Device = sequelize.define(
|
||||
{ fields: ['createdAt'] },
|
||||
{ fields: ['status', 'type'] },
|
||||
{ fields: ['name'] },
|
||||
// 优化位置冲突检测的复合索引
|
||||
{ fields: ['rackId', 'position'] },
|
||||
{ fields: ['rackId', 'position', 'isIdle'] },
|
||||
],
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user