473,396 Members | 1,995 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.

low cardinality and highly concurrent db

Hi All,

We have one column with low cardinality, 4 or 5 unique values across
50 mil rows.

Our query has this colunmn as a predicate. Binary index is not
helping. I am tempted to create bitmap index but the general myth is
there could be lot of contentions. We have a highly active OLTP system
with concurrent DMLs.

When people say that contentions due to bitmap indexes are massive,
what excatly does it mean? I am not convinced that it locks the entire
table.

Can anyone share their experiences with bitmap indexes in OLTP systems
?. I want to know % degradation during DML due to bitmap index if
possible.

Thanks a lot for any advice

Vissu
Jul 19 '05 #1
1 6704
vi*****@yahoo.com (Vissu) wrote in message news:<2b**************************@posting.google. com>...
Hi All,

We have one column with low cardinality, 4 or 5 unique values across
50 mil rows.

Our query has this colunmn as a predicate. Binary index is not
helping. I am tempted to create bitmap index but the general myth is
there could be lot of contentions. We have a highly active OLTP system
with concurrent DMLs.

When people say that contentions due to bitmap indexes are massive,
what excatly does it mean? I am not convinced that it locks the entire
table.

Can anyone share their experiences with bitmap indexes in OLTP systems
?. I want to know % degradation during DML due to bitmap index if
possible.

Thanks a lot for any advice

Vissu


Whan a newgroup has subgroups you should generally post in the
subgroups and not in the newsgroup.

A bitmap index entry can cover thousands of rows. I forget the exact
number but it can be more than 20,000 rows. When you change a table
row you also get a lock on the associated index rows for that table
row. Now you have a lock on an index row that covers thousands of
table rows so in effect you now have a row locks on thousands of rows.
This is why bitmap indexes are not usable in an OLTP situation.

If the queries in question that reference the low cardinality column
have or could reference another column also then you might be able to
rebuild you single column index as a multi-column index and beat the
problem that way.

HTH -- Mark D Powell --
Jul 19 '05 #2

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

Similar topics

2
by: Rizyak | last post by:
-----Cross posted on comp.databases.ms-sqlserver and microsoft.public.sqlserver.programming----- Can someone please explain cardinality to me? I am having a problem with an insert from a...
2
by: Ihug | last post by:
I have a database table with approx 3 million rows. There are 9 indexes on this table. The command: SHOW INDEX FROM TRAN; Returns results as expected with all indexes some valid "Cardinality"...
7
by: janet | last post by:
HI, We had some data which had low cardinality (86) , the count for that table is 9 million rows. How to optimize query which involve joining this table on that column? I'm not sure if...
5
by: MLH | last post by:
Cardinality? I hear it spoken of by MySQL users. Does it matter to MS Access if MySQL tables are attached via ODBC?
6
by: Max2006 | last post by:
Hi, I am trying to make our business logic layer components more efficient. We use strongly typed datasets and TableAdapters. Is it a good idea to use a static TableAdpater to share the static...
1
by: Vissu | last post by:
Hi All, We have one column with low cardinality, 4 or 5 unique values across 50 mil rows. Our query has this colunmn as a predicate. Binary index is not helping. I am tempted to create...
2
by: uwcssa | last post by:
is there a way to see the actual (not just estimated) cost and cardinality at each plan operator? SQL Server and Oracle has such feature but I failed to find a way in DB2 yet (up to V9.5)
0
by: db2admin | last post by:
hello, I have compressed table 442992 rows and when i run explain plan on this table for some SQL using this table, i see table scan and cardinality on top of table node as 18458. I am new to...
0
amitpatel66
by: amitpatel66 | last post by:
There is always a requirement that in Oracle Applications, the Concurrent Program need to be execute programatically based on certain conditions/validations: Concurrent programs can be executed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...
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...

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.