rainzm
bd4851c9f9
refactor(region): faster list for cachedimage
修改之前:
诸如provider, zone, host_schedtag_id, valid
等过滤条件,是通过过滤出符合条件的 storagecachedimage 然后使用 cachedimage_id 来过滤 cachedimge,
问题是,每一个过滤条件都会独立的去执行上面的过程,这样同样的查询可能要经过很多次,并且如果遇到
弱的过滤条件,比如 valid ,过滤出来的 storagecachedimage
非常之多,然后在使用 cachedimage_id 去过滤 cachedimage,会非常慢。
修改之后:
过滤条件的相似的逻辑合并起来,只需要向 subQuery 中添加 filter,使用 subQuery 一次把 storagecachedimage
过滤出来,然后使用 cachedimage_id 过滤 cachedimage。
2020-10-22 20:05:49 +08:00
..
2020-07-16 17:52:46 +08:00
2020-10-11 03:09:11 +08:00
2020-10-21 21:29:11 +08:00
2020-09-23 21:19:57 +08:00
2020-10-14 11:54:30 +08:00
2020-10-17 13:49:47 +08:00
2020-10-21 10:51:14 +08:00
2020-07-30 10:34:32 +08:00
2020-09-23 10:32:54 +08:00
2020-10-21 01:01:13 +08:00
2020-10-22 20:05:49 +08:00
2020-06-08 21:01:16 +08:00
2020-07-30 10:34:32 +08:00
2020-09-30 16:14:23 +08:00
2020-10-12 10:12:58 +08:00
2020-08-25 15:26:31 +08:00
2020-10-18 01:01:00 +08:00
2020-09-21 10:12:57 +08:00
2020-09-21 15:20:45 +08:00
2020-10-19 16:02:50 +08:00
2020-10-20 17:45:25 +08:00
2020-10-19 16:21:36 +08:00
2020-10-20 18:58:12 +08:00
2020-10-20 13:19:49 +08:00
2020-10-22 11:50:53 +08:00
2020-10-20 20:29:21 +08:00
2020-09-21 10:12:57 +08:00
2020-08-25 15:26:31 +08:00
2020-09-28 15:54:12 +08:00
2020-10-19 11:53:26 +08:00
2020-10-09 10:07:18 +08:00
2020-10-10 14:39:02 +08:00
2020-07-30 10:51:00 +08:00