Welcome to Geeklog, Anonymous Tuesday, April 16 2024 @ 02:28 pm EDT

Geeklog Forums

Splitting SQL table


mark

Anonymous
How can I split SQL table ?
Ex.: curent table from 1 January 2003 till now and rest= archive table.
My curent geeklog table grows fast (>100Mb) Frown

regards,
Mark
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
Which tables are growing large?
Geeklog components by PortalParts -- www.portalparts.com
 Quote

mark

Anonymous
I have more than 250 post per day.
I just want to limit post to the last 12 months for ex.
(split database by year: 2003, 2004...)
 Quote

Status: offline

Dazzy

Forum User
Full Member
Registered: 07/19/03
Posts: 200
Location:N. Ireland
OT:
I am nowhere near that but I can see it becoming a problem in the future!

Any chance of some sort of 'prune' function for the forum Blaine?

Many thanks
Dazzy
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
It is not an easy hack to use more then 1 database. All the SQL Class calls assume a single DB and therefore the code does not need to pass around the database connection instance.

Adding a feature that moved older articles and comments to another database would be a lot of work - as a first pass estimate.

It certainly would be easier to write a utility that deleted older content or older content that is not popular.
Geeklog components by PortalParts -- www.portalparts.com
 Quote

All times are EDT. The time is now 02:28 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content