Google Answers Logo
View Question
 
Q: Database performance ( No Answer,   3 Comments )
Question  
Subject: Database performance
Category: Computers > Software
Asked by: daouddajani-ga
List Price: $10.00
Posted: 04 Jan 2003 10:14 PST
Expires: 03 Feb 2003 10:14 PST
Question ID: 137416
Discuss the performance of a database based on views, indexes, and how
these concepts can be used in distributed databases?
Answer  
There is no answer at this time.

Comments  
Subject: Re: Database performance
From: abdul__muqeeth-ga on 04 Jan 2003 22:23 PST
 
Hi,

Let me first give the features of views in a distributed database.

What is a View:-

Actually, Views are the mirror image of your tables. It is the
interface through which you will be interacting with your database
table(s).

Why Views:-
  * To apply strict security privilege to your distributed database
system.
  * To make the work more simple, making the system more user
frienldy.

Example:- 

Say, You have four departments namely HR, Finance, Marketing and
Production in your organisation accessing the same database. In this
scenario, the HR dept mostly needs the information about the employees
personal details, their pay package etc. So, what you will do is you
will create a view on one/multiple tables with the limited columns,
which are essentail for the HR dept and give the privilege/access to
HR dept only. So, the marketing or production department had got
nothing to do with the personal details of the employees, or their pay
package or their career graph.

Similarly, for the other departments too, you will do the same
thing.You will create the view on the tables and limited columns in
them and set the privilege, so that only that particular should have
access and should only be manipulating it.

What are Indexes:- 
    
   This database object is responsible for quick process in your
database, whenever a query is made.

Why Indexes:-

   This indexes actually holds the address of the rows in the table
and when you give the select query, it goes to this index object,
searches for the primary key, picks the address of the rows and then
directly jumps to that partiuclar rows as per the row
address.Otherwise nomrmaly, the search in the database table will be
from top to bottom. If you some 10000 rows in your table and the row
you all looking for is the 9999 row, then the search will be done from
1 row down to the row 9999( as in this case).so, naturally, the
process will be very slow. This problem can be solved by creating the
index for the particular table by refering the primary key(unique and
not null) of that table.


The database perfomance get improvised in the major way with these
indexes.

Hope, you got the concepts..

regards
Abdul Muqeeth.
Subject: Re: Database performance
From: daouddajani-ga on 05 Jan 2003 06:46 PST
 
Thankx for the description, but i already know that, ;-) i would like
to get more information on the use of index and views on a destributed
system, i.e how they affect the performance
Subject: Re: Database performance
From: rac-ga on 22 Jan 2003 10:36 PST
 
Hi,
Creating indexes can help in reducing the search time. but they have
additional overhead. It will slowdown the updation/new addtion of
records to the database as it takes more time to update index
information for that records. If data base volume is high or frequent
update takes place , then this will affect the performance very much.

Bottomline use index only if you are doing search on a field
frequently.

I am not aware of View is reducing the performance.

Hope it helps.

RAC

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy