Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

query caching at specific time of day ?

Participant ,
Aug 11, 2011 Aug 11, 2011

I'm currently using:

cachedwithin=#CreateTimeSpan(1,0,0,0)#

If I'm happy my data won't change during the day, is it possible to cache a query at a pre-determined time, eg. during the early hours when I know it's unlikely anyone is on the site, say 5am ? That way,I know the query is cached and ready for anyone who asked for it ?

491
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 11, 2011 Aug 11, 2011

Scheduled task?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 11, 2011 Aug 11, 2011

Great!

[hurries off to research cf scheduled tasks for first time]

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 11, 2011 Aug 11, 2011

I'm guessing it's common for a website to cache some of it's queries at an off peak time ?

Otherwise, the first person to run that query would have the inevitable wait of a couple of seconds while the query is processed ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 11, 2011 Aug 11, 2011
LATEST

Yup.  We run a bunch of scheduled tasks between 2-5am each day to refresh and cache various bits and pieces.

But if you've got queries that are on the front-end of a website that take a coupla seconds to run, I'd be checking the query's execution plan.  That's really pretty slow.

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources