高频更新到UI网格. [英] High frequency updates to a UI grid.

查看:65
本文介绍了高频更新到UI网格.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

我有一个托管一个网格的屏幕,该网格显示了我从多个来源接收到的数据,并且每秒最多可以进行1000次更新.读取有关多个对象的X coordiante位置的信息.我通过创建一个缓存来维护更改并将网格绑定到数据集来开始设计.在数据不那么繁重之前,我使用了另一个数据集作为缓存(具有相同的架构),并在UI上使用了计时器,我从cache_DS进行getchanges,与UI_DS合并,并接受更改.由于数量急剧增加,因此我开始考虑使用其他机制,基本上是一个哈希表(用于高查找),并且在发生任何更改时,都会在哈希表上更新数据.我在UI上创建了一个计时器,每增加1.5秒就会滴答一次,我会从哈希表中获取所有更新.我的问题是:如何确定使用该设计已更新了哪些节点?哈希表具有键和值,键是对象名称,值是x coordiante.

I have a screen hosting one grid, that grid shows data I recieve from multiple sources and can reach up to 1000 updates per second.  Reading information on X coordiante positions of a number of objects. I started the design by creating a cache to maintain the changes , and binding the grid to a dataset. Before the data was not that heavy so I uised another dataset as a cache ( with the same schema), and with a timer on the UI, I go and getchanges, from the cache_DS, merge with the UI_DS, and accept changes. Since the volume has increased dramatically I started thinking of a different mechanis, basically a hashtable ( for high lookups ) , and when any change occurs, the data is updated on the hashtable. I created a timer on the UI that ticks every 1.5 seconds upen which I go to get any updates from the hashtable. my question is : How do I figure out which nodes have been updated using this design? the hashtable has keys and values, keys being the object name, and value being the x coordiante.

推荐答案

所以您有一个数据集/缓存的数据表-如何将记录放在那里?您可以从缓存"表中选择"记录的主要思想是第一个表中不存在.您必须放置一些键",然后从中进行选择.

So you have a dataset/datatable for cache - how do you put records there ? The main idea that you can 'SELECT' records from 'cache' table that not exist in first table. You have to put some 'keys' and then SELECT from them.

 

这是我的2美分


这篇关于高频更新到UI网格.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆