GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Database
Go To First  |  Previous Question  |  Next Question 
 Database  |  Question 10 of 70    Print  
What are the different methods to make query faster?

  
Total Answers and Comments: 2 Last Update: July 26, 2007     Asked by: ashis kumar mohanty 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
February 08, 2006 00:59:25   #1  
Phaneesh .B        

RE: what are the different methods to make query faste...

Stored Queries Increase the Speed of Access Queries. They are usually referred to as Stored Queries similar to SQL Server's Stored Procedures but less powerful. They are only SQL statements no more no less; they cannot do what Stored Procedures do on SQL Server

There are several ways to Speed up the Query mainly

  • By database join tables union tables uses indexes choose access paths
  • Aggregate tables
  • Aggregate navigators/query redirectors: This is the technology that automatically directs a query to aggregated data if such data are available and appropriate for the query
  • Partitioning: partitioning comes in many ways shapes and forms. At the very least it is dividing one table into several tables usually based on the time the table data represent. Note that both tables and indexes may be partitioned.
  • B-tree indexing: Adding numerous indexes is another common method for speeding up queries.
  • Dimensional modeling: With certain database technologies this modeling can reduce the amount of sort/merging that goes on when joining tables. And some query tools may generate more efficient SQL if data are modeled dimensionally. Also if you use surrogate keys in conjunction with dimension modeling joins may be more efficient.
  • Parallelizing query execution
  • Bit mapped indexing: This technique can work well when a field takes on a low number of distinct values (i. e. low cardinality) and tends to be in WHERE clauses often.
  • Defragmentation of table and index files
  • Query accelerators: These help you generate more efficient SQL. Note that they are probably more helpful to those who report off of highly normalized databases.
  • Query nannies: This is my term for technologies that warn (scold?) the user if he submits an inefficient query. Some of these provides hints about how to make the query more efficient and some (I have heard) actually try to fix up the queries.

 
Is this answer useful? Yes | No
July 26, 2007 02:58:15   #2  
dhivyavetriselvan        

RE: What are the different methods to make query faste...
Select query can be made faster by using indexes.
 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : Select query can be made faster by using indexes. ...
Read Answers (2) | Asked by : ashis kumar mohanty

You are writing a report that needs to format data being extracted from the database on the screen. All data relates to a specific object, but there are a variable amount of tables, and each table has a variable amount of columns and a variable amount of rows. The goal is to produce a display which is user friendly from a typical browser screen. For example, consider a system for a gift wishlist. The main object is a person and different categories of items are stored in separate tables (movies
View Question | Asked by : Ming


 Sponsored Links

 
Related Articles

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

Performing XSLT Transformations inside the Database

Performing XSLT Transformations inside the Database Now that you have the employees XSL stylesheet stored in the database and the xmlusr schema is permitted to access the hr employees table you can create a script that will instruct the database to build an HTML page based on the data stored in hr e
 

Moving All the XML Processing into the Database

Moving All the XML Processing into the Database In the preceding example the database server performs only a part of the XML processing while the rest is still performed by the PHP engine Specifically the database server generates an employees XML document based on the records from the hr employees
 

Performing XML Processing inside the Database

Performing XML Processing inside the Database When building XML enabled applications on top of Oracle there are many advantages to performing the XML processing inside the database when compared to performing it on the client The key advantages to perform XML processing inside the database are as fo
 

What is an Ad Hoc Query

An Ad-Hoc Query is a query that cannot be determined prior to the moment the query is issued. It is created in order to get information when need arises and it consists of dynamically constructed SQL which is usually constructed by desktop-resident query tools. This is in contrast to any query which
 

What is Operational Database

Operational Database is the database-of-record, consisting of system-specific reference data and event data belonging to a transaction-update system. It may also contain system control data such as indicators, flags, and counters. The operational database is the source of data for the data warehouse
 

Evolution of database systems

The Evolution of Database systems File Management System Hierarchical database System  Network Database System  Relational Database System File Management System: The file management system also called as FMS in short is one in which all data is stored on a singl
 

Database Concurrency and Reliability

Database Concurrency and Reliability Overview Concurrency and reliability have long been “hot topics” of discussion among developers and users of distributed systems. The fundamental problem can be seen in a simple example, as follows. Suppose two users are working on the same
 

Database Interaction

Database Interaction Efficient interaction, efficient storage, and efficient processing are the three key properties of a successful database platform. In this article, we explore the first: efficient interaction. Interaction Category 1: Command Line Clients Many database platforms are shipped with
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape