You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To avoid deletion/update conflicts, it's necessary to preserve the correspondence between each line of the objects before and after the merge. Therefore, the memory consumption during merging is directly proportional to the number of lines in the objects being merged. The following graph shows the memory consumption of the daily regression process for this correspondence yesterday.
This is not OK. As merge sort implementer you must know how much memory you can use, where to get it. A config, or query scheduler. One you have the number, you will sort using this number of memory. Assume it is 8G. You must sort 8G of data in memory and, and spill if data is more than 8G.
Activity
w-zr commentedon Jun 5, 2024
To avoid deletion/update conflicts, it's necessary to preserve the correspondence between each line of the objects before and after the merge. Therefore, the memory consumption during merging is directly proportional to the number of lines in the objects being merged. The following graph shows the memory consumption of the daily regression process for this correspondence yesterday.

fengttt commentedon Jun 17, 2024
This is not OK. As merge sort implementer you must know how much memory you can use, where to get it. A config, or query scheduler. One you have the number, you will sort using this number of memory. Assume it is 8G. You must sort 8G of data in memory and, and spill if data is more than 8G.
w-zr commentedon Jun 23, 2024
目前没有进展
w-zr commentedon Jun 28, 2024
目前没有进展
w-zr commentedon Jul 3, 2024
目前没有进展
w-zr commentedon Jul 9, 2024
目前没有进展
w-zr commentedon Jul 15, 2024
目前没有进展
w-zr commentedon Jul 18, 2024
目前正在优化手动merge操作。之后会做一些细节测试,查看内存占用。
w-zr commentedon Jul 25, 2024
#17656 合并之后,内存有较大提升。
w-zr commentedon Jul 30, 2024
Memory usage in merging 10M rows:

Before #17656 :
After #17656 :

After #17768:

After #17768, it will be difficult to achieve significant memory optimization in the merge process.