Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Partition

Author  Topic 

pankaj.malhotra
Starting Member

5 Posts

Posted - 2009-02-05 : 07:29:20
I have created partition on table on states basis.
Lets say data of every state store in different partition of one table.

Now when i am writing a query and that query is using data of 4 data of 4 states , will it use partition and result data more fast. Or i have to retrieve data from one state only to use partition.
Is there any specific thing i have to write to use partition.

Thanks

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2009-02-05 : 07:31:06
Yes it definitely will if you have followed the rules of partitioning.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-02-05 : 07:36:54
also just in case you want to improve query speed, you can create indexes on individual partitions also
Go to Top of Page

pankaj.malhotra
Starting Member

5 Posts

Posted - 2009-02-05 : 23:01:01
What you exactly mean by rules of partitioning? and url for same ?
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2009-02-06 : 08:56:02
quote:
Originally posted by pankaj.malhotra

What you exactly mean by rules of partitioning? and url for same ?



Means When you follow rules for which partition is designe for like:
1)Separate Filegroups according to Partition Key to Separate Disks to take advantages of PARALLEL THREADS.

2)Align the Partition Index with the regular Index.

3)Moving Read-only Partition to Read-only FG with Switch in/out.
Go to Top of Page

abcd
Yak Posting Veteran

92 Posts

Posted - 2009-02-06 : 23:42:39
hi sodeep......
i was going through ur reply....
can you explain how to execute parallel threads using partitioning...
i know how partition is done using file groups and key...
jst wanat to discuss this topic more...
thanks in advance........
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-02-07 : 09:00:25
http://www.databasejournal.com/features/mssql/article.php/3638236/Data-partitioning-in-SQL-Server-2005---Part-I.htm
http://www.databasejournal.com/features/mssql/article.php/3640891/Data-Partitioning-in-SQL-Server-2005---Part-II.htm
http://www.databasejournal.com/features/mssql/article.php/3643726/Data-partitioning-in-SQL-Server-2005---Part-III.htm
http://www.databasejournal.com/features/mssql/article.php/3647271/Data-partitioning-in-SQL-Server-2005---Part-IV.htm
http://www.databasejournal.com/features/mssql/article.php/3647561/Data-partitioning-in-SQL-Server-2005---Part-V.htm

Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2009-02-07 : 09:22:56
quote:
Originally posted by abcd

hi sodeep......
i was going through ur reply....
can you explain how to execute parallel threads using partitioning...
i know how partition is done using file groups and key...
jst wanat to discuss this topic more...
thanks in advance........



When Multiple FG are spread accross Mulitple Drives, Queries take advantage of PARALLEL THREADS. There is very Good Whitepaper on Table Partitioning .Search for it and post if you have any issues with it.
Go to Top of Page
   

- Advertisement -