473,394 Members | 1,663 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,394 software developers and data experts.

tuningproblem : materialized table instead of view

Hi!
I have an select on a view that takes too much time. The view include joins.
I tried index-analysis and explain-plan, but this don't help.

But it helped when making a real table (select * into realtable from
bigview) and afterwards
making my select on realtable...?

Suggestions? Where to read more about it?
Greetings
Bjørn
Jul 20 '05 #1
2 3450

"bdjensen" <b.***************@gmx.net> wrote in message
news:41*********************@dread14.news.tele.dk. ..
Hi!
I have an select on a view that takes too much time. The view include
joins.
I tried index-analysis and explain-plan, but this don't help.

But it helped when making a real table (select * into realtable from
bigview) and afterwards
making my select on realtable...?

Suggestions? Where to read more about it?
Greetings
Bjørn


There's a lot of information about performance tuning - you might want to
look into something like the MS Press Performance Tuning book, or sites like
this:

http://www.sql-server-performance.com/

In your specific case, it's impossible to say anything without information
about the view definition, table structures, indexes, data etc., and even
then it might be too complex to discuss in a newsgroup. If you use the view
a lot, you might consider indexing it - see "Creating an Indexed View" in
Books Online. But there are quite a lot of restrictions, and you get a
performance hit on any data modifications to the underlying tables, so it's
probably most useful in reporting, where the data doesn't change much.

Simon
Jul 20 '05 #2
Thanks!
I'll look at indexed views and try it ;-)
/Bjørn
"Simon Hayes" <sq*@hayes.ch> wrote in message
news:41**********@news.bluewin.ch...

"bdjensen" <b.***************@gmx.net> wrote in message
news:41*********************@dread14.news.tele.dk. ..
Hi!
I have an select on a view that takes too much time. The view include
joins.
I tried index-analysis and explain-plan, but this don't help.

But it helped when making a real table (select * into realtable from
bigview) and afterwards
making my select on realtable...?

Suggestions? Where to read more about it?
Greetings
Bjørn
There's a lot of information about performance tuning - you might want to
look into something like the MS Press Performance Tuning book, or sites

like this:

http://www.sql-server-performance.com/

In your specific case, it's impossible to say anything without information
about the view definition, table structures, indexes, data etc., and even
then it might be too complex to discuss in a newsgroup. If you use the view a lot, you might consider indexing it - see "Creating an Indexed View" in
Books Online. But there are quite a lot of restrictions, and you get a
performance hit on any data modifications to the underlying tables, so it's probably most useful in reporting, where the data doesn't change much.

Simon

Jul 20 '05 #3

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

Similar topics

4
by: Richard Holliingsworth | last post by:
Hello: I have an Access 2K form I built from a SQL Server 7.0 view. I want to lock certain fields in the database from users so they can see them on the views and forms, but NOT be able to edit...
3
by: sam | last post by:
Hello group, The datagrid is sorted using a dataview. Can I get the sorted dataview or table from the datagrid or any other way. All I need to get is the sorted data. Here is my code and what I am...
9
by: Madhivanan | last post by:
It is possible to drop the table without dropping the view referencing it. How do I force integrity? Madhivanan
5
by: David Deacon | last post by:
Hi i was given the following advise,below my OriginalQuestion I am a little new to ADOX can you direct me to the following Do i place the code behind a button on a form? Or do i place it in the...
6
by: BillCo | last post by:
I've reached the limit of my knowledge here and I'm starting to go mad - any help would be greatfully recieved!!!! I'm having a strange problem with making pass through queries to an oracle db...
16
by: UDBDBA | last post by:
Hi All: I need some clarification on a MERGE statement. The database is on V8 FP12 (AIX) 64bit. The source table is tableA. The target is a View "FACT" with UNION ALL because of the 512 Gig...
1
by: bill van de bogert | last post by:
I have a question which I can't seem to get answered from the technical support tools. I would like to move the totals row on my pivot tables to the top of the pivot table instead of the bottom. It...
4
by: princelindie | last post by:
I am using code that looks something like this: <?php mysql_connect("localhost", "xxxx_xx", "xxx") or die(mysql_error()); mysql_select_db("xxxx_xxx") or die(mysql_error()); $query="SELECT...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.