近距离紧凑 - 糟糕的主意? [英] Compact on close - bad idea?

查看:56
本文介绍了近距离紧凑 - 糟糕的主意?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是吗?

推荐答案

Mike MacSween写道:
Mike MacSween wrote:
是吗?




用户可能不会欣赏它。然后他们可能会使用快捷方式并关闭Access窗口而不是单击命令按钮。我确定

是技术方面的考虑,但我不知道它们是什么。



The user might not appreciate it. Then they might take a shortcut and close
the Access window rather than click on your command button. I''m sure there
are technical considerations but I''m don''t know what they are.


我工作的大多数应用程序是分开的前/后端,所以紧凑的关闭不是很多用途。我通常提供单独的Access MDB,提供

维护服务,例如紧凑型后端。


2003年9月17日星期三21:39:00 +0100,Mike MacSween

< mi ****************** @ btinternet.com>写道:
Most apps I work on are split front/back end, so Compact on close is not
much use. I usually provide a separate Access MDB that provides
maintenance services such as compact-back-end.

On Wed, 17 Sep 2003 21:39:00 +0100, "Mike MacSween"
<mi******************@btinternet.com> wrote:
是吗?






它可能不会发生什么事。但为什么不定期压缩

(例如,如果mdb在过去的n天内没有被压缩,那么紧凑)?有各种各样的方式可以使用

代码,我想(如果没有,我可以发布我的

自己的kludgey代码)。如果用户打开数据库,为什么要压缩,查看

记录,然后再次关闭它?性能损失将大于压缩所带来的任何好处。您可以根据上次压缩后的天数(使用次数)来确定压缩的时间(有一个表格带有

一个记录,当数据库增加一个记录时)打开),或者

你想要的任何其他东西。


我能看到的唯一情况就是机器一直在运行,

持续运行数据库,但在这种情况下,我会寻找一个更好的b $ b b b强大的解决方案。


HTH,

Bruce Rusk

" Mike MacSween" < MI ****************** @ btinternet.com>在消息中写道

新闻:3f ********************* @ pubnews.gradwell.net。 ..
It probably won''t HURT anything. But why not compact on a regular schedule
(e.g., compact if the mdb hasn''t been compacted in the past n days)? There''s
code available to do this in various ways, I think (if not, I can post my
own kludgey code). Why compact if a user opens the database, looks at a
record, and closes it again? The performance loss would be greater than any
benefit from the compacting. You could base the decision to compact on the
number of days since last compacting, the number of uses (have a table with
one record which incremements by one when the database is opened), or
whatever else you want.

The only situation I could see it is a machine that is up all the time,
running a database continuously, but in that situation I''d look for a more
robust solution.

HTH,

Bruce Rusk
"Mike MacSween" <mi******************@btinternet.com> wrote in message
news:3f*********************@pubnews.gradwell.net. ..
是吗?



这篇关于近距离紧凑 - 糟糕的主意?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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