dbTalk Databases Forums  

REFRESH CUBE Statement

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss REFRESH CUBE Statement in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David Hwang
 
Posts: n/a

Default REFRESH CUBE Statement - 12-04-2003 , 05:32 PM






I'm trying to do some benchmarking tests on Analysis Server, so I'm
trying to make sure that I'm not getting any caching effects. I've
been reading that issuing a REFRESH CUBE [cubename] should clear the
client side cache, but it doesn't seem to be happening for me. If I
issue a query, I see it show up in the Analysis Server log
(msmdqlog.mdb). If I then issue a REFRESH CUBE statement and then
send the same query (all using the same open connection that was used
for the first query), I don't see it show up in the log (presumably
because it was caught by the pts cache). Does anyone see something
obvious that I'm doing wrong here?

Reply With Quote
  #2  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: REFRESH CUBE Statement - 12-04-2003 , 07:14 PM






REFRESH CUBE cleans the client cache, but not the server cache - that's why
you see no updates in the Query Log. In order to clean server cache - issue

Process processSuspend
Process processResume

from the DSO application on the applicable object.

--
==================================================
Mosha Pasumansky - http://www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================
"David Hwang" <davidhwang (AT) usa (DOT) com> wrote

Quote:
I'm trying to do some benchmarking tests on Analysis Server, so I'm
trying to make sure that I'm not getting any caching effects. I've
been reading that issuing a REFRESH CUBE [cubename] should clear the
client side cache, but it doesn't seem to be happening for me. If I
issue a query, I see it show up in the Analysis Server log
(msmdqlog.mdb). If I then issue a REFRESH CUBE statement and then
send the same query (all using the same open connection that was used
for the first query), I don't see it show up in the log (presumably
because it was caught by the pts cache). Does anyone see something
obvious that I'm doing wrong here?



Reply With Quote
  #3  
Old   
David Hwang
 
Posts: n/a

Default Re: REFRESH CUBE Statement - 12-05-2003 , 09:12 AM



Thanks for clearing that up. Is there any other way that I can verify
that the query actually hit the server? For my performance testing,
it's fine if the server cache is used, I just need to make sure that
the queries actually make it to the server. Basically, right now I
can't tell if the client cache is really getting cleared or not.

"Mosha Pasumansky [MS]" <moshap (AT) online (DOT) microsoft.com> wrote

Quote:
REFRESH CUBE cleans the client cache, but not the server cache - that's why
you see no updates in the Query Log. In order to clean server cache - issue

Process processSuspend
Process processResume

from the DSO application on the applicable object.

--
==================================================
Mosha Pasumansky - http://www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================
"David Hwang" <davidhwang (AT) usa (DOT) com> wrote in message
news:d9f37fcd.0312041532.5a58812d (AT) posting (DOT) google.com...
I'm trying to do some benchmarking tests on Analysis Server, so I'm
trying to make sure that I'm not getting any caching effects. I've
been reading that issuing a REFRESH CUBE [cubename] should clear the
client side cache, but it doesn't seem to be happening for me. If I
issue a query, I see it show up in the Analysis Server log
(msmdqlog.mdb). If I then issue a REFRESH CUBE statement and then
send the same query (all using the same open connection that was used
for the first query), I don't see it show up in the log (presumably
because it was caught by the pts cache). Does anyone see something
obvious that I'm doing wrong here?

Reply With Quote
  #4  
Old   
David Hwang
 
Posts: n/a

Default Re: REFRESH CUBE Statement - 12-05-2003 , 10:06 AM



Also, I noticed that if I send the same query 100 times but use
different connection objects, then I see 100 entries in the query log.
But shouldn't the server cache be catching those queries also? In
the query log, I notice that only the first entry has a "1" for
MOLAPpartition, the others have a "0". I had assumed that that meant
that all queries after the first were hitting the server cache.

"Mosha Pasumansky [MS]" <moshap (AT) online (DOT) microsoft.com> wrote

Quote:
REFRESH CUBE cleans the client cache, but not the server cache - that's why
you see no updates in the Query Log. In order to clean server cache - issue

Process processSuspend
Process processResume

from the DSO application on the applicable object.

--
==================================================
Mosha Pasumansky - http://www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================
"David Hwang" <davidhwang (AT) usa (DOT) com> wrote in message
news:d9f37fcd.0312041532.5a58812d (AT) posting (DOT) google.com...
I'm trying to do some benchmarking tests on Analysis Server, so I'm
trying to make sure that I'm not getting any caching effects. I've
been reading that issuing a REFRESH CUBE [cubename] should clear the
client side cache, but it doesn't seem to be happening for me. If I
issue a query, I see it show up in the Analysis Server log
(msmdqlog.mdb). If I then issue a REFRESH CUBE statement and then
send the same query (all using the same open connection that was used
for the first query), I don't see it show up in the log (presumably
because it was caught by the pts cache). Does anyone see something
obvious that I'm doing wrong here?

Reply With Quote
  #5  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: REFRESH CUBE Statement - 12-05-2003 , 12:40 PM



Quote:
Also, I noticed that if I send the same query 100 times but use
different connection objects, then I see 100 entries in the query log.
But shouldn't the server cache be catching those queries also? In
the query log, I notice that only the first entry has a "1" for
MOLAPpartition, the others have a "0". I had assumed that that meant
that all queries after the first were hitting the server cache.
You are right - the MOLAPPartitions column shows how many MOLAP partitions
were hit by that query. 0 means that they were all answered entirely from
the cache.

--
==================================================
Mosha Pasumansky - http://www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================




Reply With Quote
  #6  
Old   
David Hwang
 
Posts: n/a

Default Re: REFRESH CUBE Statement - 12-06-2003 , 12:08 PM



Does that mean that the REFRESH CUBE statement isn't working for me
since it seems like those queries aren't even hitting the server
cache?

"Mosha Pasumansky [MS]" <moshap (AT) online (DOT) microsoft.com> wrote

Quote:
Also, I noticed that if I send the same query 100 times but use
different connection objects, then I see 100 entries in the query log.
But shouldn't the server cache be catching those queries also? In
the query log, I notice that only the first entry has a "1" for
MOLAPpartition, the others have a "0". I had assumed that that meant
that all queries after the first were hitting the server cache.

You are right - the MOLAPPartitions column shows how many MOLAP partitions
were hit by that query. 0 means that they were all answered entirely from
the cache.

Reply With Quote
  #7  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: REFRESH CUBE Statement - 12-07-2003 , 02:10 PM



Quote:
Does that mean that the REFRESH CUBE statement isn't working for me
since it seems like those queries aren't even hitting the server
cache?
Did you set query log sampling frequency to 1 ?

--
==================================================
Mosha Pasumansky - http://www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================




Reply With Quote
  #8  
Old   
David Hwang
 
Posts: n/a

Default Re: REFRESH CUBE Statement - 12-08-2003 , 12:25 AM



Yes, I managed to figure that out after a bit of confusion.

I was wondering if either the server cache or the log was doing
something connection specific that might explain this behavior that
I'm seeing.

"Mosha Pasumansky [MS]" <moshap (AT) online (DOT) microsoft.com> wrote

Quote:
Does that mean that the REFRESH CUBE statement isn't working for me
since it seems like those queries aren't even hitting the server
cache?

Did you set query log sampling frequency to 1 ?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.