- OpenX Community Forums

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Database Too Large, How To Reduce? How To Clean The Statistics?, Using OpenX a few years ago the database is huge.
GUIA DA OBRA.NET
post Apr 5 2012, 02:33 PM
Post #1


Member
**

Group: Members
Posts: 19
Joined: 19-July 07
From: São Paulo - SP - Brazil
Member No.: 17,319



I want to "clean up" my database. After several years of using OpenX, my database is already the 250Mb and I find it a lot.

How do I reduce this size dramatically? If I clear all the statistics of the past can greatly decrease the database? How do I do this?

Thank you my friends wink.gif
Go to the top of the page
 
+Quote Post
mediamerica
post Apr 30 2012, 05:52 PM
Post #2


Beginner
*

Group: Members
Posts: 8
Joined: 12-October 09
Member No.: 57,861



QUOTE (GUIA DA OBRA.NET @ Apr 5 2012, 02:33 PM) *
I want to "clean up" my database. After several years of using OpenX, my database is already the 250Mb and I find it a lot.

How do I reduce this size dramatically? If I clear all the statistics of the past can greatly decrease the database? How do I do this?

Thank you my friends wink.gif


Surprised nobody's responded to this for you. Well I'm mainly a novice myself, so use this advice at your own risk.

But from what I understand, consider at your own risk clearing out:

oa_data_raw_ad_impression
oa_data_raw_ad_request

After that, you could clear out SOME of your stats from:
ox_data_intermediate_ad
ox_data_summary_ad_hourly

Here's where somebody once replied to me on this:

http://forum.openx.org/index.php?showtopic=503486661
Go to the top of the page
 
+Quote Post
GUIA DA OBRA.NET
post Apr 30 2012, 06:03 PM
Post #3


Member
**

Group: Members
Posts: 19
Joined: 19-July 07
From: São Paulo - SP - Brazil
Member No.: 17,319



QUOTE (mediamerica @ Apr 30 2012, 02:52 PM) *
QUOTE (GUIA DA OBRA.NET @ Apr 5 2012, 02:33 PM) *
I want to "clean up" my database. After several years of using OpenX, my database is already the 250Mb and I find it a lot.

How do I reduce this size dramatically? If I clear all the statistics of the past can greatly decrease the database? How do I do this?

Thank you my friends wink.gif


Surprised nobody's responded to this for you. Well I'm mainly a novice myself, so use this advice at your own risk.

But from what I understand, consider at your own risk clearing out:

oa_data_raw_ad_impression
oa_data_raw_ad_request

After that, you could clear out SOME of your stats from:
ox_data_intermediate_ad
ox_data_summary_ad_hourly

Here's where somebody once replied to me on this:

http://forum.openx.org/index.php?showtopic=503486661


Thank you my friend!

I'll try it, thank you for your attention and appreciation.

wink.gif
Go to the top of the page
 
+Quote Post
GUIA DA OBRA.NET
post May 1 2012, 01:21 AM
Post #4


Member
**

Group: Members
Posts: 19
Joined: 19-July 07
From: São Paulo - SP - Brazil
Member No.: 17,319



Friend, I'm not getting ... so how do you say?
Go to the top of the page
 
+Quote Post
GUIA DA OBRA.NET
post May 2 2012, 09:34 PM
Post #5


Member
**

Group: Members
Posts: 19
Joined: 19-July 07
From: São Paulo - SP - Brazil
Member No.: 17,319



QUOTE (GUIA DA OBRA.NET @ Apr 30 2012, 10:21 PM) *
Friend, I'm not getting ... so how do you say?


I got friends, I got!!!

I did here in SQL through phpMyAdmin, in OpenX database:
CODE
DELETE FROM ox_data_intermediate_ad WHERE interval_end < DATE_SUB(CURDATE(), INTERVAL 1 MONTH);
DELETE FROM ox_data_summary_ad_hourly WHERE date_time < DATE_SUB(CURDATE(), INTERVAL 1 MONTH);
DELETE FROM ox_data_summary_zone_impression_history WHERE interval_end < DATE_SUB(CURDATE(), INTERVAL 1 MONTH);


The time can be changed if desired, in my case, I did for 1 month, ie, I cleaned the statistics prior to 1 month.

Thank you and I have helped others who have the same doubt.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 

Locations of visitors to this page