Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.sqlserver.programming > #31278

Re: Assigning Display Lines to Date Ranges

Path csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Erland Sommarskog <esquel@sommarskog.se>
Newsgroups microsoft.public.sqlserver.programming
Subject Re: Assigning Display Lines to Date Ranges
Date Thu, 12 Nov 2015 22:44:33 +0100
Organization Erland Sommarskog
Lines 15
Message-ID <XnsA550E759DB2DYazorman@127.0.0.1> (permalink)
References <n20m6u$kn7$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 8bit
Injection-Info mx02.eternal-september.org; posting-host="265adb1c021f4e45f9de4dc4b7d8dc41"; logging-data="21311"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/E8DC+VZ2Hwpz+QaDjuQeb"
User-Agent Xnews/2006.08.24 Mime-proxy/2.1.c.0 (Win32)
Cancel-Lock sha1:gaiGbcuyG90kjX1xZOru734gC48=
Xref csiph.com microsoft.public.sqlserver.programming:31278

Show key headers only | View raw


Michael Cole (invalid@invalid.com) writes:
> I would prefer a set-based solution, as there will be a lot of data to 
> go though (about 1500 ranges) and it needs a response time of less than 
> 15 seconds maximum (less than 10 would be better.)

It is far from certain that a set-based query would be the fastest in 
this case, although I have not tried anything yet. But if the ranges
are tied to different entities that are separate from each other, you could
iterate over the entities in parallel.

A key question: which version of SQL Server are you using?


-- 
Erland Sommarskog, Stockholm, esquel@sommarskog.se

Back to microsoft.public.sqlserver.programming | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Assigning Display Lines to Date Ranges Michael Cole <invalid@invalid.com> - 2015-11-12 11:25 +1100
  Re: Assigning Display Lines to Date Ranges Erland Sommarskog <esquel@sommarskog.se> - 2015-11-12 22:44 +0100
    Re: Assigning Display Lines to Date Ranges Michael Cole <invalid@invalid.com> - 2015-11-13 09:01 +1100
      Re: Assigning Display Lines to Date Ranges Erland Sommarskog <esquel@sommarskog.se> - 2015-11-13 14:12 +0100
        Re: Assigning Display Lines to Date Ranges Erland Sommarskog <esquel@sommarskog.se> - 2015-11-13 23:18 +0100
          Re: Assigning Display Lines to Date Ranges Michael Cole <invalid@invalid.com> - 2015-11-16 11:34 +1100
  Re: Assigning Display Lines to Date Ranges --CELKO-- <jcelko212@earthlink.net> - 2015-11-12 18:47 -0800

csiph-web