indexed-view Questions

7

Solved

I have a simple Indexed View. When I query against it, it's pretty slow. First I show you the schema's and indexes. Then the simple queries. Finally a query plan screnie. Update: Proof of Solutio...
Hefty asked 17/6, 2009 at 3:19

3

Solved

I can create clustered or non-clustered index on view and SQL SERVER says, we can have multiple non-clustered index (max 249), but only one clustered index exist on table or view. Because, records ...
Brach asked 18/4, 2013 at 22:36

5

Solved

I am going to design a Data Warehouse and I heard about materialized views. Actually I want to create a view and it should update automatically when base tables are changed. Can anyone explain with...
Aquilar asked 21/10, 2010 at 10:14

2

Solved

How can you get a list of the views in a SQL server database that have indexes (i.e. indexed views)? I've found it's pretty easy to run an "ALTER VIEW" as I'm developing and overlook that I'm not ...
Cataract asked 10/2, 2011 at 21:38

3

Solved

SQL Fiddle: http://sqlfiddle.com/#!6/d4496/1 (data is pre-generated for your experiments) There is obvious table: CREATE TABLE Entity ( ID int, Classificator1ID int, Classificator2ID int, Cl...
Norbert asked 27/2, 2014 at 15:5

5

Solved

I know in SQL Server you can create indexes on a view, then the view saves the data from the underlying table. Then you can query the view. But, why I need to use view instead of table?
Solomon asked 5/10, 2010 at 7:4

4

Solved

I found a posting on the MySQL forums from 2005, but nothing more recent than that. Based on that, it's not possible. But a lot can change in 3-4 years. What I'm looking for is a way to have an in...
Papyrus asked 28/10, 2008 at 18:4

3

Solved

I've a query that performs join on many tables which is resulting in poor performance. To improve the performance, I've created an indexed view and I see a significant improvement in the performan...
Cantwell asked 19/2, 2013 at 19:20

4

I have a table of address data in my SQL server database. This table is not normalized so it contain many addresses the are repeated. Each unique address can be identified by an Id field (the...
Oswin asked 17/8, 2010 at 11:23

1

Solved

I want to create the following indexed view: CREATE VIEW [Cic].[vwMarker] WITH SCHEMABINDING AS Select SubId, marker.EquipmentID, marker.ReadTime, marker.CdsLotOpside, marker.CdsLotBacksi...
Monocyte asked 7/10, 2011 at 11:12

2

Solved

Its easy to check storage sizes for Tables and Indexes, you can right-click the table object on SSMS explorer and voila, the details appear in a nice popup. But since Indexed Views are displayed t...
Dissolve asked 18/5, 2011 at 16:15

2

Solved

I have an indexed view that I need to specify the noexpand hint for in order for it to perform reasonably. Unfortunately as seen with regard to modifying the Linq to SQL generated T-SQL query from ...
Seen asked 28/6, 2010 at 19:51

6

Say I have a very long table (~35 million rows) called TimeCard with only 5 columns (tableID, CompanyID, UserID, ProjectID, DailyHoursWorked, entryDate). This is a pretty straight forward table tha...
Dhole asked 10/3, 2010 at 19:41

3

Solved

Can someone please explain to me in simple English how an index on a view works? I have a fairly simple understanding of indexes on tables; how would indexing a view work differently from just lett...
Ithunn asked 12/11, 2009 at 10:59

1

Solved

Server: MS Sql Server 2008 When i create an indexed view .. and i then alter the view's schema, the index's all get dropped. It's sooo annoying! Can someone explain why this is? At first I thoug...
Foreignism asked 13/10, 2009 at 4:7

3

Solved

Let's say I've got a SQL Server Indexed View, vwIndexedView, that reads from two tables, tbTableOne, and tbTableTwo. If I perform an action on one of the two tables inside a transaction, what happ...
Holmen asked 6/7, 2009 at 21:38

2

Solved

I'm trying to optimize a query which uses a view in MySQL 5.1. It seems that even if I select 1 column from the view it always does a full table scan. Is that the expected behaviour? The view is j...
Ursala asked 12/3, 2009 at 4:8
1

© 2022 - 2024 — McMap. All rights reserved.