Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

变量懒加载 #3

Open
reshinek opened this issue Sep 5, 2023 · 4 comments
Open

变量懒加载 #3

reshinek opened this issue Sep 5, 2023 · 4 comments

Comments

@reshinek
Copy link

reshinek commented Sep 5, 2023

如果变量为一个列数很多的table(比如以股票id作为列名), 或者是一个存有多个table的字典, 在预览变量时会造成长时间卡顿.

针对以上场景是否可以增加懒加载?

@peeyee
Copy link

peeyee commented Sep 5, 2023

请提供下:

  1. 复现上述问题的代码
  2. 现象的具体描述和证据
  3. 你期待的行为,如何懒加载

@reshinek
Copy link
Author

reshinek commented Nov 8, 2023

请提供下:

  1. 复现上述问题的代码
  2. 现象的具体描述和证据
  3. 你期待的行为,如何懒加载
  1. 没有代码, 问题出现在VSCode插件的GUI上
  2. 比如一个table以股票id作为列名,将有4000-5000列,如果使用鼠标点击预览, dataview界面加载将超过6秒
  3. 如果一个字典存储了多个个上述4000+列的表格,使用鼠标点击预览,则加载时间线性增加, 而且无法中断,只能强制断开连接
  4. 期待的行为:如同像pandas一样,在列数多于一定时, 使用”...“等形式忽略中间部分, 只显示首尾若干列(如提供配置参数则更佳),同时在预览截面增加一个”显示全部列“的按钮。

@reshinek
Copy link
Author

reshinek commented Nov 8, 2023

另一个类似的问题,如果一个字典键值非常多, 当点击预览时,默认会显示所有Value,导致加载时间很长。
升级建议:
方案1. 点击预览字典时,dataview界面只加载Key值,当用户具体点击某个Key时,再加载具体value
方案2. 点击预览字典时,如果键值非常多, 对键值进行分页

@peeyee
Copy link

peeyee commented Nov 14, 2023

好的,我尝试复现你所说的问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants