Apr 14, 2008, 10:53 AM
Post #1 of 1
Hi there. I'm writing a plugin for game server bots which are coded in Perl. I need to merge 6 databases containing player names and their IP's into 1 master file. I'm hoping to be able to do so rather efficiently (in terms of resource usage), as it's going to be done at least a few times a day on a server that's relatively stressed at most times.
So, I'm merging 6 databases from SQLite into 1 large one, repeatedly (ipdb1.bat, ipdb2.bat, ..., ipdb6.bat ---> ipdbmaster.bat). I don't want duplicates, but if there is one player nick with multiple IP's, I need those to transfer, like so:
ipdb3.bat contains 18.104.22.168
Would result in ipdbmaster.bat containing:
hlgladiator 22.214.171.124 126.96.36.199 188.8.131.52
Having it merged cleanly (like above) is more of a nicety than a necessity. If somebody could point me in the right direction, I would really appreciate it.
Thanks in advance,