![]() |
Item System Storage
My task is to create an item system. I was just wondering what everybody's opinions are on the storage of data. I'm not too worried about your caching opinions but if you want to make them known, I'm more than happy to take advise.
|
For me, both files and SQL works since I load them into a DBNPC. Both ways work since it's a one off read. SQL seemed pretty slow when dealing with alot of requests for me (which was really weird) so I wouldn't recommend storing and reading items out of it constantly.... works really well for logs though =D
For ease of use (and the fact I don't use the files live) I recommend file based |
Quote:
|
Quote:
|
Quote:
Though, it'd still be nice to hear what other people have to say on the matter. |
I have to say files. Easier to manage and work with if you are offline (You can write up items and all that stuff when you're missing an internet connection. Just upload them when you get internet back.)
I usually just store all the information in files, and then cache them for faster access. It's just so much easier doing object.loadvars(filepath), instead of having to hazzle with requests and such with SQL.. It's personal preference to a certain degree though. |
Quote:
|
Files + DB Cache for Base Arc Data, and SQLite for storing player's item info (quantity, custom modifiers, etc.).
It's so much easier to do trades with SQLite, since you can just make the updates in one transaction, then have them both reload their items. Plus it makes the backing up of player data a simple one file backup. |
SQLite is by far the easiest and most powerful way of doing it.
|
Quote:
|
Quote:
I could most probably list a lot more reasons why SQLite is superior, but the above ones are the ones that convinced me. |
Quote:
Do you only use SQL or some combo as Jerret described in his post? Edit; What if you have a player that had it's player data glitched, and you need to restore their old values from the old SQL backup, what would you do then? Install a third party software to view the table wanted and then manually query a change in the current SQL DB with the old backup data? (Seeing as requestsql2() isn't working as far as I've seen) |
For some reason, SQLite seems to have a high cpu usage on a few queries with graal though :/
|
Quote:
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 08:39 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.