如何在特定的排序逻辑中逐个选择在线用户列表? [英] How to pick online user list part by part in specific sort logic ?

查看:120
本文介绍了如何在特定的排序逻辑中逐个选择在线用户列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我需要在web api服务的帮助下列出所有在线用户。并且按照字母顺序按字母顺序列出在线用户的排序顺序。并且需要逐个选择数据以避免大量数据传输时间,如facebook向下滚动更新。我使用linq skip()和take()方法逐个部分地选择数据。



我的问题影响是我的数据列表顺序更改时间用户上线或一个人下线。这种变化使得我的数据采集方法skip()和take()多次采用相同的数据,或者由于在辅助数据采集中缺少或相同的数据顺序而使一些数据丢失。



我如何解决问题?

解决方案

为此使用setInterval(function()(jquery)并给出时间间隔,它取值为毫秒的值。 / BLOCKQUOTE>

Hi,

I need to list all online users, working with help of web api service. And its listing in a sort order of online user in alphabetical order after that offline users in alphabetical order. And need to pick data part by part to avoid large data transfer time like facebook scroll down updation. I picking the data part by part using linq skip() and take() methods.

What my problem affecting is my list of datas order changing time by time that one user got online or one got offline. This changing make my data picking method skip() and take() taking the same data multiple time or laps some data due lack or same order of data in adjusent data picking.

How I able to solve the problem ?

解决方案

for this use setInterval(function () (jquery) and give time interval which takes value interms of miliseconds.


这篇关于如何在特定的排序逻辑中逐个选择在线用户列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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