473,796 Members | 2,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 30256
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
2851
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
6362
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 database using unicode compression field (for ancient language). I would like to export this table into MySQL o Postgres, but it's
5
4526
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 in the property sheet change from No to Yes. However, the behavior has not changed at all. It still behaves as though it were set to No. When I change the boolean in the property sheet GUI it behaves as expected. Any thoughts?
4
3186
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 database using unicode compression field (for ancient language). I would like to export this table into MySQL o Postgres, but it's
2
6289
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. 'Start code Private Sub AddNewField_Click() On Error GoTo ErrAddNewField_Click
0
2330
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 I've got a simple table with 16 text fields with size 255 each. Now I'd like to modify the UC property in code. One of them with DAO like so... Set db = CurrentDb() Set tdef = db.TableDefs("Testtable")
6
1563
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 the String. I tried with the code available @ http://msdn2.microsoft.com/en-us/library/system.io.compression.gzipstream(VS.80).aspx but with no success 'cause I obtained ms.lenght buffer.length. This is my source code for CompressData:
5
5974
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 compression string ->(Unicode Conversion) byte -(Compression + Unicode Conversion) string
4
2512
by: Rehceb Rotkiv | last post by:
Hello, I have this little grep-like program: ++++++++++snip++++++++++ #!/usr/bin/python import sys import re
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10465
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10242
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10200
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6800
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4127
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.