由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 一个没想明白的问题
相关主题
question about using Hive parameter (转载)socket 会丢失数据吗?
Help C++ Template function link error .问个游戏开发相关的问题
这个12306赌局的client好像有点漏洞阿借人气,请教个SMTP server的问题 (转载)
用SQL Server 准备数据,R分析数据问个matlab socket问题
请教server/client dllcall server api cross domain的问题
一个进程如何同时做Client和Server?求解:socket client用node.js, socket server用c++
A simple question on Flexactive directory在java里有什么替代的?
请问一个关于web编程的问题vert.x 就那么点东西:verticles, event bus. http server/client, tcp server/client
相关话题的讨论汇总
话题: client话题: server话题: timestamp话题: cache话题: querys
进入Programming版参与讨论
1 (共1页)
m***t
发帖数: 254
1
I have a client that querys server every 1 hour. It stores local cache for
the stuff it downloaded from
server. The client local cache carries a timestamp, called client_time_stamp
. Everytime the client querys
the server, the server compares the client timestamp with a server timestamp
about the data the client
needs. If the data has not changed, the server timestamp will be older than
the cache_time_stamp, thus
the server will just return cache_valid, and client preserves old client_
time_stam
c*****t
发帖数: 1879
2
Basically, create two indices on key A and key B. For join operation,
it is not necessarily slow.
If both sets are small, brute force match would be sufficient.
In your case, the bottle neck could very well be disk seek time
vs disk read time. Actual comparison could be done rather quickly.
Also, if sets are sorted in certain manners, the comparison can be
done efficiently.
The bottomline is that, before you consider some fansy algorithms,
do some tests firsts.

stamp
timestamp
than

【在 m***t 的大作中提到】
: I have a client that querys server every 1 hour. It stores local cache for
: the stuff it downloaded from
: server. The client local cache carries a timestamp, called client_time_stamp
: . Everytime the client querys
: the server, the server compares the client timestamp with a server timestamp
: about the data the client
: needs. If the data has not changed, the server timestamp will be older than
: the cache_time_stamp, thus
: the server will just return cache_valid, and client preserves old client_
: time_stam

1 (共1页)
进入Programming版参与讨论
相关主题
vert.x 就那么点东西:verticles, event bus. http server/client, tcp server/client请教server/client dll
linux, find command question一个进程如何同时做Client和Server?
Windows下大家都用什么SqlConsole啊?A simple question on Flex
Querying JSON in Postgres请问一个关于web编程的问题
question about using Hive parameter (转载)socket 会丢失数据吗?
Help C++ Template function link error .问个游戏开发相关的问题
这个12306赌局的client好像有点漏洞阿借人气,请教个SMTP server的问题 (转载)
用SQL Server 准备数据,R分析数据问个matlab socket问题
相关话题的讨论汇总
话题: client话题: server话题: timestamp话题: cache话题: querys