0

I have this question on how is deletion done on Mobile development, in lieu with Database of course, which or what is the best practice in these field, Does deletion of records permanently in database recommended on mobile dev, or flagging in database that a record is deleted more efficient?... i know that in large scale DBMS u have to flag a record that is deleted so u can view past records i just read that on the DBMS book though, does the same principle apply on mobile development, considering that i'm only developing an application for a very small scale only

Any inputs form all you veteran DBAs and Mob. Devs out there are much Appreciated..

4

2 に答える 2

1

As databases on a mobile device are not likely to get large, deletion shouldn't be too inefficient.

But I would say it is useful to flag deleted rows instead, as usually databases in these scenarios are used to hold data locally when the device is off-line pending synchronization to the network, and it's much easier to query deletions and upload them rather than diffing the local rows with remote ones to find what needs to be deleted.

于 2012-07-30T13:02:26.947 に答える
0

これはアプリケーションの設計要件に依存するため、アプリの効率とは関係ありません。読んでいるのは、監査が必要な大規模システム用です。モバイルプラットフォームで実行され、おそらく監査を必要としないアプリケーションを開発しているので、その場合はそのようなレコードを削除しても問題ありません(少なくともそれが私がやりたいことです)。

レコードにフラグを付けるとデータベースのサイズが大きくなるため、デバイスに不要なデータ(メモリ)を残すことはお勧めできません。

于 2012-07-30T13:03:22.120 に答える