检查新数据在一定时间后, [英] Check for new data after a certain time frame

查看:105
本文介绍了检查新数据在一定时间后,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,我使用的是第三方供应商来获得一些数据。我每次调用服务我需要支付一小笔费用的数据。我想知道如果在SQL或C#中的方法,可以将数据存储在个人数据库,然后检查(在指定的时间之后),是否有新的数据在我的第三方提供商。

Right now I'm using a 3rd party provider to get some data. Every time I call the service I need to pay a small fee for the data. I'm wondering if there is a method in sql or c# that can store the data in a personal database, then check (after a specified timeframe) whether or not there is new data at my 3rd party provider.

而不是调用服务/寻找数据的每个页面加载时间,例如,我想每一个星期左右去寻找新的数据和存储的数据的个人数据库上使用下周。这可以帮助我削减成本,还加快了我的系统。

For example, instead of "calling the service"/"looking for the data" each time the page is loaded, I'd like to look for new data every week or so and store the data on a personal database to use for the next week. This helps me cut on the costs and also speeds up my system.

我不找任何code在这里,只是一个简单的方法来执行/解决问题。我的工具是VS,C#,SQL,asp.net/html。

I'm not looking for any code here, just a simple way to execute/problem solve. My tools are VS, c#, SQL, asp.net/html.

推荐答案

我建议你使用SQL依赖。当数据发生变化时它会通知你的应用程序:阅读更​​多这里那是当然的,如果他们允许它。您也可以使用任意数量的缓存应用程序:AppFabric中,memcached的,SharedCache,ASP.NET缓存。

I suggest you use sql dependency. When the data has changed it will notify your application: read more here That is of course, if they allow it. You can also use any number of caching apps: AppFabric, memcached, SharedCache, ASP.NET cache.

这篇关于检查新数据在一定时间后,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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