Columns are Changing, Result the Same

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

Columns are Changing, Result the Same

Postby Mr Tiger » Fri Mar 16, 2012 10:34 pm

I was changing columns, but results in my report were not influenced by it (newly created stats is visible in reports, but not changed when I change their columns). Checked it many times. Tried to restart PostrgeSQL and even the computer, but it didn't help. The results started to change only when I changed the active database. The first database had 100% updated cache. The second one - 0%.
Is it normal?
Mr Tiger
 
Posts: 143
Joined: Tue Sep 09, 2008 5:14 am

Re: Columns are Changing, Result the Same

Postby kraada » Sat Mar 17, 2012 9:33 am

The 0% cache database should have shown the changes - if the report is one that can use the cache it will but if you change a column used for a stat that has already been cached you'll need to rebuild the cache (using the Cache Rebuild Housekeeping option) in order to get the proper values in there.

Try rebuilding the cache on whichever database is smaller and see if that gets things working for you better.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Columns are Changing, Result the Same

Postby Mr Tiger » Sat Mar 17, 2012 1:27 pm

kraada wrote:........if the report is one that can use the cache it will.......

It's one of my custom reports.
kraada wrote:.........if you change a column used for a stat that has already been cached you'll need to rebuild the cache.......

I made a new stat, then I made a report with it (not rebuilding or updating cache). The report showed some value (looks real). Then I changed one column used for the stat, but the report showed the same value.

I think, rebuilding the cache can help, but I can't rebuild the cache every time I change a column and try to test the respective stat.
Mr Tiger
 
Posts: 143
Joined: Tue Sep 09, 2008 5:14 am

Re: Columns are Changing, Result the Same

Postby WhiteRider » Sat Mar 17, 2012 7:03 pm

Did you click Refresh to update the report after you changed your stat?
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Columns are Changing, Result the Same

Postby Mr Tiger » Sat Mar 17, 2012 7:10 pm

I don't remember, but now results are changing in every database. Looks like temporary bug...
Mr Tiger
 
Posts: 143
Joined: Tue Sep 09, 2008 5:14 am


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 1 guest