GhostXoP Posted June 10, 2012 Share Posted June 10, 2012 I need some opinions, I had an idea to store user information, in a per file format. Say a user called Foo with the password of bar creates an account, Store it as FILENAME Foo and within the file store the password bar. What is your opinion on this? Link to comment
GhostXoP Posted June 10, 2012 Author Share Posted June 10, 2012 MySQL or SQLite...? ill look into that Link to comment
GhostXoP Posted June 10, 2012 Author Share Posted June 10, 2012 Would my original idea be slower? Link to comment
GhostXoP Posted June 10, 2012 Author Share Posted June 10, 2012 It wouldnt be too much slower tho, probably 2 - 3 seconds of time to load the information, insure the user exists, and set the users equipment, username, position, etc Link to comment
JR10 Posted June 10, 2012 Share Posted June 10, 2012 XML is not recommended for saving system. It can eats memory enough to kill your server. I recommend MySQL or SQLite. Link to comment
GhostXoP Posted June 10, 2012 Author Share Posted June 10, 2012 I have considered the options you have all given me, and still am however. How much slower would it be if i had used my original idea? With high upload bandwidth and 10,000rpm 1tb drive to store information? Link to comment
JR10 Posted June 10, 2012 Share Posted June 10, 2012 Look, if you want to make a successful server you need to optimize it as much as possible. I experienced a server that failed because of using XML to save accounts, even though I'm not sure that files will cause same problem as XML. I recommend being on the safe side and using SQLite or MySQL. They're both easy to learn. EDIT: This might help: viewtopic.php?f=148&t=38203. Link to comment
GhostXoP Posted June 10, 2012 Author Share Posted June 10, 2012 EDIT: This might help: viewtopic.php?f=148&t=38203. Probably the best response all day about SQL is that link as i have been looking for tutorials. You have me convinced, thank you for your response. What would i need to download to use SQL? What would you recommend One more question, I see two types of functions, Do they work together, or can i use either/or (db and execute) Link to comment
JR10 Posted June 11, 2012 Share Posted June 11, 2012 You don't need to download anything if you're going to use SQLite (the link I gave you), MySQL otherwise would need you to setup a database. executeSQL* functions are the old SQLite functions, they freeze the server until they get the result back. db* functions are the new ones, dbQuery have a callback argument, so you can use that callback to handle the result as it returns. Simply use db* functions. In the same link I gave you, I also posted a db* functions tutorial, check it, it's the second post. Link to comment
GhostXoP Posted June 11, 2012 Author Share Posted June 11, 2012 I did, i wasn't sure what post i was suppose to pay close attention to. Thank you. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now