何时发送查询 [英] When to send a Query

查看:87
本文介绍了何时发送查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于以下设计问题,我将感兴趣.
我有一个实时更新的数据供稿.用户通过UI输入值即可提供数据条件.

我们可以选择在用户输入内容时更新标准,或者允许他们在各个字段中输入标准,然后单击按钮进行刷新.

大多数字段都是独立的,但可以有相关的字段,例如日期范围.

可以理解为用户理解了他们所提供的数据以及查询触发时他们期望返回的数据.

我们应该使用自动还是手动刷新?


过滤器以与显示数据相同的形式输入,它是一个桌面应用程序,而不是Web.

该标准通过各种方法保持不变,这超出了范围,但请看这里.

这是读取操作,更新[可能]来自数百个不同的源,我们只是在读取输出.

I''ll be interested in any feedback on the following design problem.
I''ve got a data feed that updates real time. The criteria for the data is provided by the user entering values through the UI.

We have the option to update the criteria as and when the user enters something or to allow them to enter criteria in various fields then hit a button to refresh.

Most of the fields are independent, but there can be related fields such as a date range.

Take it as read that the user''s understand the data they are providing and what they would expect to be returned when the query fires.

Should we go with the auto or manual refresh?

[edit - add extra info]
The filter is entered on the same form as the data is displayed, it is a desktop app, not web.

The criteria is persisted by various methods, this is out of scope but take as read it is there.

This is read operation, the updates are coming from [potentially] hundreds of different sources, we''re just reading the output.

推荐答案

您没有提到想要的位置去做这个.我认为最好是在用户接受整个页面时进行更新.

同时,您可以创建一个临时内存并将其存储(如果可能的话,可以持久保存).

仅当用户接受整个输入时,才应更新主数据库.

:)
You didnt mentioned where you want to do this. I think it is always better to update when the user accepts the whole page.

In the mean while, you can create a temporary memory and store it(persistent if possible).

The main database should be updated only when the user accepts the whole input.

:)


这篇关于何时发送查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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