Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server
You last visited: Today at 20:50

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



DataBase too big problem

Discussion on DataBase too big problem within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old   #1
 
Svinseladden's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
DataBase too big problem

mabe not a problem but for me it kind of is..

i can keep it under 10 gb it's np but gamedata is fuliing up kind of fast and every thing is in there..

let's say i get ppl back 1 month after they left or so i need to change the db every month..

is there a way to make make gamelog1,2,3 and so on some other place? like a secound server?

and how can i make them in a way talk to eachother so i can run a script and this will show me anything about 1 char? let's say statpadding..

/****** Script for SelectTopNRows command from SSMS ******/
SELECT
[UserID]
,[UserUID]
,[CharID]
,[CharName]
,[CharLevel]
,[CharExp]
,[MapID]
,[PosX]
,[PosY]
,[PosZ]
,[ActionTime]
,[ActionType]
,case when [ActionType] = 103 then 'Killed'
when [ActionType] = 104 then 'GotKilled'
else 'Other' end as 'ActionTypeText'
,[Text1]
,[Text2]
FROM
[PS_GameLog].[dbo].[ActionLog] with (nolock)
where
ActionType in ('103','104')
and CharName = 'Character Name Here'
order by
ActionTime

easy right? but when i have to change db like every 14 day's or so i can't get it all i have to change the db every time i change a db LOL so i only have like 14-30 day's log always.. i want mabe 6 db's so i have for 6 month.

is there way's to make this kind of make a secound db it self when 1 is full and i can have like 6 of them on the main server?

or so i can make like 6 on the backup server?

hope you understand what i'm trying to figure out..

any help is great thanks..
Svinseladden is offline  
Old 11/07/2012, 16:28   #2
 
elite*gold: 0
Join Date: Sep 2011
Posts: 21
Received Thanks: 48
What you are asking is possible. You could take the action log entries older than x days and move them to another database, or another table, then create a view that covers the tables from wherever you put them and just query the view ( select something from viewname ) as opposed to the table name.

Now the above scenario is VERY generic, you could put the table in another DB, in the same DB, another server with another DB, etc, but it gets complicated to maintain DB aliases and linked servers, security and such...

I understand the want to keep action log stuff for a long time, but the need isn't there in my opinion. Personally I backup the DB once a week, trunc the action log table once a month and if need be, restore to look up action log items.

As for the DB, you should be focused on access times, and access methods rather than data size, storage is fairly cheap these days ( depending on your hosting solution of course )
player1up is offline  
Thanks
3 Users
Old 11/07/2012, 16:50   #3
 
Svinseladden's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
i run ssd so the space isnt realy there LOL

but yes i understand what your saying. do a weekly backup for just the action log and use it when needed..

but can i just then mabe restore the db as old actionlog? the database in sql it self? on the main server and mabe back up those 2 so i have always have 1 month (the normal one going right now) then 1 called (Ps_OldGameLog) running at the same time so i can search in it.?

then transfer the Old to the other server? this way i always have 3 month backup and 1 as the normal?

and could i then just take a backup and restore it as OldGamlog? or will this be called PS_Gamelog becouse that's what i backed up?

i know i explain this badly LOL

hope you understand and thanks
Svinseladden is offline  
Old 11/07/2012, 17:14   #4
 
elite*gold: 0
Join Date: Sep 2011
Posts: 21
Received Thanks: 48
Yeah, if you're running ssd, then speed shouldn't be an issue and I can see why you'd want to move "older" data off.
yep, you can call the restored DB anything you want. From Management studio, just put in the new name in the restore dialog box, then point it to the backup file.
player1up is offline  
Thanks
3 Users
Reply


Similar Threads Similar Threads
[HELP]Database Problem
07/07/2012 - Metin2 Private Server - 4 Replies
Hello, Elitepvp I have problems with my database. It make's users stuck at "logging in" I am not sure what the problem is but sometimes it works, sometimes it doesn't work. Most times it loggs in after 10 minute or so. It's a hosted server Any ideas? I tried re-installing database and then using a backup i made, i tried repairing all tables, What else could i try?
Database problem!
06/16/2012 - SRO Private Server - 5 Replies
Hello E*PVP! i get this error when i restore database http://img406.imageshack.us/img406/3026/errorvz.p ng Please help me !
Database problem!
06/12/2012 - SRO Private Server - 3 Replies
Hello E*PVP! I cant login to database?! The login box didn't shown for me. http://a4.sphotos.ak.fbcdn.net/hphotos-ak-ash3/s4 80x480/538166_401196253249127_644997687_n.jpg
DAtabase Problem
11/02/2009 - Metin2 Private Server - 1 Replies
So I started a Metin2 Server... I opened the databse and make account at "account"...After that I goed in 'common" and then "gmlist" and I pu account there too...After that I enter the game put the account stills beeing a normal player...I even rebooted the server but is the same problem...Can soemoene help me?:(
[DataBase] Problem
10/03/2009 - Metin2 Private Server - 1 Replies
Ich hab einbissn rumgefummel und nun .. seht selber. http://i38.tinypic.com/akcy6u.jpg Alles wurde zu Null gemacht ich konnte mich bevor ich was in DB gemacht hab auch nicht anmelden Mit Login: Rain PW:12345 was ist den falschen ?? (also warum konnte ich mich nicht anmelden)



All times are GMT +1. The time now is 20:50.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.