Click here to Skip to main content
15,889,462 members
Home / Discussions / Database
   

Database

 
GeneralRe: Slow query when using @variable in Where clause Pin
Meysam Mahfouzi28-Jan-09 1:07
Meysam Mahfouzi28-Jan-09 1:07 
GeneralRe: Slow query when using @variable in Where clause Pin
Wendelius28-Jan-09 1:19
mentorWendelius28-Jan-09 1:19 
GeneralRe: Slow query when using @variable in Where clause Pin
Meysam Mahfouzi28-Jan-09 1:53
Meysam Mahfouzi28-Jan-09 1:53 
GeneralRe: Slow query when using @variable in Where clause Pin
Wendelius28-Jan-09 2:13
mentorWendelius28-Jan-09 2:13 
GeneralRe: Slow query when using @variable in Where clause Pin
Meysam Mahfouzi28-Jan-09 2:56
Meysam Mahfouzi28-Jan-09 2:56 
GeneralRe: Slow query when using @variable in Where clause Pin
Wendelius28-Jan-09 3:12
mentorWendelius28-Jan-09 3:12 
GeneralRe: Slow query when using @variable in Where clause Pin
Meysam Mahfouzi28-Jan-09 3:31
Meysam Mahfouzi28-Jan-09 3:31 
GeneralRe: Slow query when using @variable in Where clause Pin
Wendelius28-Jan-09 4:16
mentorWendelius28-Jan-09 4:16 
Maysam Mahfouzi wrote:
Is this just MY problem with pagination, or everybody else is dealing with such problem for large number of rows


I think I'm not the best person to answer that. The applications I mostly design act a little bit differently. Although they handle larege amount of rows I try to keep the result sets small and avoid paging at all. I think that there propably is several different solutions and the one I suggested may be one of those. Another approach could be that you page per date as you mentioned. One technical modification could be to use partitioning (but that requires Enterprise Edition) etc.

Maysam Mahfouzi wrote:
You know my conclusion is that, maybe, pagination has never been meant to be used for large number of rows


That's my understanding too. It really doesn't make sense if you're on page 212347 Smile | :)

Also one thing that we haven't spoken is caching. The page number change quite seldomly so you could cache the pages (or let's say first 100 pages) and use them from cache. In that case you just need to now when news are added in order to redresh the cache. That can be done using polling or better yet using SqlDependency. Still if cache is used and you go to the data beyond cache the search mechanism should be efficient.


So if you try the last suggestion and let's see what it does. Also try utilizing cache. It greatly helps you to maintain overall performance of the system.

The need to optimize rises from a bad design.My articles[^]

GeneralRe: Slow query when using @variable in Where clause Pin
Meysam Mahfouzi28-Jan-09 4:38
Meysam Mahfouzi28-Jan-09 4:38 
GeneralRe: Slow query when using @variable in Where clause Pin
Wendelius28-Jan-09 4:51
mentorWendelius28-Jan-09 4:51 
GeneralRe: Slow query when using @variable in Where clause Pin
Meysam Mahfouzi24-Jun-09 20:46
Meysam Mahfouzi24-Jun-09 20:46 
Questionsql server group Pin
Nath26-Jan-09 17:36
Nath26-Jan-09 17:36 
AnswerRe: sql server group Pin
Wendelius26-Jan-09 18:28
mentorWendelius26-Jan-09 18:28 
QuestionOracle tnsnames.ora "I guess!!" Pin
Muammar©26-Jan-09 8:06
Muammar©26-Jan-09 8:06 
AnswerRe: Oracle tnsnames.ora "I guess!!" Pin
Wendelius26-Jan-09 8:27
mentorWendelius26-Jan-09 8:27 
GeneralRe: Oracle tnsnames.ora "I guess!!" Pin
Muammar©26-Jan-09 22:31
Muammar©26-Jan-09 22:31 
GeneralRe: Oracle tnsnames.ora "I guess!!" Pin
Wendelius27-Jan-09 2:41
mentorWendelius27-Jan-09 2:41 
QuestionInsert value and select Pin
fly90426-Jan-09 5:01
fly90426-Jan-09 5:01 
AnswerRe: Insert value and select Pin
Wendelius26-Jan-09 5:13
mentorWendelius26-Jan-09 5:13 
QuestionSSIS: How can you read data from hidden Excel worksheets using SSIS? Pin
Red_Wizard_Shot_The_Food26-Jan-09 4:40
Red_Wizard_Shot_The_Food26-Jan-09 4:40 
AnswerRe: SSIS: How can you read data from hidden Excel worksheets using SSIS? Pin
Wendelius26-Jan-09 6:27
mentorWendelius26-Jan-09 6:27 
GeneralRe: SSIS: How can you read data from hidden Excel worksheets using SSIS? Pin
Red_Wizard_Shot_The_Food26-Jan-09 22:29
Red_Wizard_Shot_The_Food26-Jan-09 22:29 
GeneralRe: SSIS: How can you read data from hidden Excel worksheets using SSIS? Pin
Wendelius27-Jan-09 2:44
mentorWendelius27-Jan-09 2:44 
QuestionMicrosoft Reporting Problem Pin
subai25-Jan-09 20:13
subai25-Jan-09 20:13 
QuestionHow to set up a database and use it Pin
toprogramminguy24-Jan-09 6:22
toprogramminguy24-Jan-09 6:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.