473,396 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Unicode Compression - good or evil?

Is it best practice to set Unicode Compression to "No" for memo fields in a
table? What about text fields?

According to the VB help entry:

"Data in a Memo field is not compressed unless it requires 4,096 bytes or
less of storage space after compression. As a result, the contents of a Memo
field might be compressed in one record, but might not be compressed in
another record."

So if the vast majority of memo fields are less than 4096 bytes, why bother?
Is it better to avoid compression? My main concern is data integrity - I'm
willing to take a performance hit to get rid of compression if I don't need
it.
Nov 13 '05 #1
2 30039
On Wed, 22 Sep 2004 06:19:50 GMT, "deko"
<ww*******************************@nospam.com> wrote:
Is it best practice to set Unicode Compression to "No" for memo fields in a
table? What about text fields?

According to the VB help entry:

"Data in a Memo field is not compressed unless it requires 4,096 bytes or
less of storage space after compression. As a result, the contents of a Memo
field might be compressed in one record, but might not be compressed in
another record."

So if the vast majority of memo fields are less than 4096 bytes, why bother?
You seem to have it backwards. If only fields with less than 4096 bytes are
compressed, and most of your fields are less than 4096, then most of your data
will ge the benefit of compression.
Is it better to avoid compression? My main concern is data integrity - I'm
willing to take a performance hit to get rid of compression if I don't need
it.


Since fields are compressed on an individual basis, corruption can't affect
more than one field. My guess (and it's only a guess) is that compression
gives you a slightly larger chance of losing all or part of the data in one
field as opposed to just one or 2 characters, but adds no greater risk than
that.

I have yet to have a problem where the compression would have made a
difference one way or other. If I've lost anything at all on a corruption,
it's been 1 or 2 entire records (or a whole database) not all or part of a
field.

Personally, I recommend that you go ahead and use Unicode compression.
Nov 13 '05 #2
> Personally, I recommend that you go ahead and use Unicode compression.

Using it will help keep the size of the mdb down, I suppose. In terms of
data integrity, you may be correct in suggesting that it will not matter one
way or the other.

Thanks for the feedback!
Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: wolfgang haefelinger | last post by:
Hi, I wonder whether someone could explain me a bit what's going on here: import sys # I'm running Mandrake 1o and Windows XP. print sys.version ## 2.3.3 (#2, Feb 17 2004, 11:45:40)
1
by: JJ | last post by:
Hi, usually, I'm not using MS servers, but I have a big problem with a Access table. I should create a web application for a Historical Dipartment. They have create a populated a Access...
5
by: Bill Grigg | last post by:
I am attempting to set the UnicodeCompression property via code. The following line "appears" to work: tdf.Fields("State").Properties("UnicodeCompression").Value = True I can see the boolean...
4
by: JJ | last post by:
Hi, usually, I'm not using MS servers, but I have a big problem with a Access table. I should create a web application for a Historical Dipartment. They have created a populated a Access...
2
by: dixie | last post by:
I am writing some vba to create a new field if it is not already there. Code follows. The code I have so far, creates the new field in the table and sets the AllowZeroLength property = true. ...
0
by: jazaret | last post by:
I've been having a hard time getting the benefits that Unicode Compression offers (2003 Access). I've got a test database that I'd like to set the Unicode Compression for the fields. For this test...
6
by: Fla | last post by:
Hi! I would like to use Compression namespace for Array, i.e. use .NET native Compression for compress a String, or an Array of Integer whose elements are returned values of AscW for each char of...
5
by: jeremyje | last post by:
I'm writing some code that will convert a regular string to a byte for compression and then beable to convert that compressed string back into original form. Conceptually I have.... For...
4
by: Rehceb Rotkiv | last post by:
Hello, I have this little grep-like program: ++++++++++snip++++++++++ #!/usr/bin/python import sys import re
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.