- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to understand if indexes are needed.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2003 06:30 AM
тАО04-08-2003 06:30 AM
how to understand if indexes are needed.
How can I understand if a database need some indexes?
What are statistics? How can I get them?
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2003 06:56 AM
тАО04-08-2003 06:56 AM
Re: how to understand if indexes are needed.
Basically an index on a large table is always good.
It makes your access faster .
http://www.dba-oracle.com/art_9i_indexing.htm
If you have large tables with many repetetive selects on the same fields then index on the fields and you work faster.
See
http://www.tc.umn.edu/~hause011/article/Tunage.html
http://www.smart-soft.co.uk/Oracle/oracle-performance-tuning-part2.htm
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x0e6cc1c4ceddd61190050090279cd0f9,00.html
http://www.eweek.com/article2/0,3959,12410,00.asp
steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2003 12:13 PM
тАО04-08-2003 12:13 PM
Re: how to understand if indexes are needed.
To analyze, there are a few options.
analyze table
This gathers the complete statistics about the table and indexes by reading all of the rows from the table to generate the statisitics needed.
analyze table
This gathers a partial view of the data by reading only 10% of the table. If the 10% queried does not reflect your data, this can cause a bad query plan.
You can also use the "DBMS_UTIL.ANALYZE_SCHEMA" package to analyze the full schema with the different options. This is probably the easiest to use to generate all of the statistics for the tables at once as a job.
Remember that with indexes and analyze, you will want to generate sql plans or traces to view the optimization route as well if you are trying to tune queries.
Hope this helps,
Thanks,
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2003 08:19 PM
тАО04-08-2003 08:19 PM
Re: how to understand if indexes are needed.
Indexing is a crucial aspect of your application design and development. Too many indexes and the performance of DML will suffer. Too few indexes and the performance of queries (including inserts, updates and deletes) will suffer. Finding the right mix is critical to your application performance.
Indexes should not be an afterthought in application development. From the very beginning, if you understand how the data will be used, you should be able to come up with the representative set of indexes you will in your application. Too many times the approache seems to be to throw the application out there and then see where indexes are needed. This implies you have not taken the time to understand how the data will be used and how many rows you will ultimately be dealing with. You'll be adding indexes to this system forever as the volume of data grows over time (reactive tuning). You'll have indexes that are redundant, never used, and this wastes not only space but also computing resources. A few hours at the start, spent properly considering when and how to index your data will save you many hours of 'tuning' further down the road. (it WILL, not it MIGHT)
If your goal is to tune for performance, you should start looking into tools like SQL_TRACE, TIME_STATISTICS, and TKPROF which comes with the database. Advance tuning will involve analysis of STATSPACK reports.
If you need further help, please let us know.
Best Regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2003 09:14 PM
тАО04-08-2003 09:14 PM
Re: how to understand if indexes are needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2003 07:04 AM
тАО04-09-2003 07:04 AM
Re: how to understand if indexes are needed.
There is a SQL Tuning Workshop class at Oracle University that covers a lot about statement tuning. To index or not to index and what to index. I took it and liked the hands on that it gave.
-Happy Computing
Allan