Xgear
Community Contributors
- Messages
- 249
- Points
- 0
- Age
- 40
1.- Rename column names to not-reserved names
On some SQL tables, some columns have names that are reserved words in some programing languages (such as time, date, int, class, etc)
I'd like to suggest renaming these common columns to something a little bit more specific without depending on reserved names, some tables already work with more specific column names (such as branch_log for example having branch_date), which would also help standarize parts of the SQL code whenever needed.
2.- Drop branch_log
I just went through the code quickly and noticed branch_log is not used for anything. And even if it was used, with the current schema it'd provide no more information than pick_log would. Is there a point on keeping it?
3.- Merge zenylog into picklog
I could see zenylog being on a separate table slightly useful, however as the logs tables are only used to search for information by the users, it could serve its duty better if it was joined in picklog, as it'd only require one one query rather than two when trying to search for movement into someone's inventory.
4.- Move charlog into log. (Shooting in the dark here
)
I am really shooting high here, I know. a lot of people is against making the char server set another connection to the log database when there really isnt much interaction for it.
I havn't done my homework here in terms of studying how "expensive" resource-wise it'd be to do this, however, in terms of structure and usefulness, having the database in the main database makes the charlog not-so-useful.
Perhaps instead of setting a new connection from the char server, make the char server send a signal back to the login server/map server (which it already does on most things) with a bit more information telling them what to log.
I think I had another idea but it kind of slipped my mind right now -_-'
P.S.: Just noticed I posted this here, should probabbly be on Suggestions, so if someone could move it it'd be great.
As a P.S.2: Shouldnt Development Discussion be Staff-Started, Staff-approved and have topics be moved here by the Staff when needed? Should be more of a discussion/feedback center than a suggestions forum (Noticed a few topics that feel more like a feature request than actual development/core feedback
)
On some SQL tables, some columns have names that are reserved words in some programing languages (such as time, date, int, class, etc)
I'd like to suggest renaming these common columns to something a little bit more specific without depending on reserved names, some tables already work with more specific column names (such as branch_log for example having branch_date), which would also help standarize parts of the SQL code whenever needed.
2.- Drop branch_log
I just went through the code quickly and noticed branch_log is not used for anything. And even if it was used, with the current schema it'd provide no more information than pick_log would. Is there a point on keeping it?
3.- Merge zenylog into picklog
I could see zenylog being on a separate table slightly useful, however as the logs tables are only used to search for information by the users, it could serve its duty better if it was joined in picklog, as it'd only require one one query rather than two when trying to search for movement into someone's inventory.
4.- Move charlog into log. (Shooting in the dark here
I am really shooting high here, I know. a lot of people is against making the char server set another connection to the log database when there really isnt much interaction for it.
I havn't done my homework here in terms of studying how "expensive" resource-wise it'd be to do this, however, in terms of structure and usefulness, having the database in the main database makes the charlog not-so-useful.
Perhaps instead of setting a new connection from the char server, make the char server send a signal back to the login server/map server (which it already does on most things) with a bit more information telling them what to log.
I think I had another idea but it kind of slipped my mind right now -_-'
P.S.: Just noticed I posted this here, should probabbly be on Suggestions, so if someone could move it it'd be great.
As a P.S.2: Shouldnt Development Discussion be Staff-Started, Staff-approved and have topics be moved here by the Staff when needed? Should be more of a discussion/feedback center than a suggestions forum (Noticed a few topics that feel more like a feature request than actual development/core feedback
Last edited by a moderator: