Risto Lahtela
7080b7b3b2
Attempt to fix networkGeolocationCounts on MySQL
2019-02-16 14:28:16 +02:00
Rsl1122
1d2fc774c2
Fixed test fails caused by sudden player name change
2019-02-16 14:28:16 +02:00
Rsl1122
acd2225c49
Refactored UserInfoTable#registerUserInfo to a transaction:
...
- Removed RegisterProcessor
- Refactored UserInfoTable#isRegistered (both) to a query
- Removed UserInfoTable#isRegisteredOnThisServer
- Removed UserInfoTable#getServerUserInfo - not used
- Made login nickname processing non critical
2019-02-16 14:28:15 +02:00
Rsl1122
feaf7849d2
Refactored UsersTable#registerUser to a transaction:
...
- Removed ProxyRegisterProcessor
- Optimized name updating to occur on login instead of chat events
- This removes the need to store player names in the DataCache.
2019-02-16 14:28:14 +02:00
Rsl1122
8a15e03096
Refactored UsersTable#isRegistered to a query
2019-02-16 14:28:14 +02:00
Rsl1122
966b204ca1
Fixed swapped op and ban values in test
2019-02-16 14:28:13 +02:00
Rsl1122
aa3678ba0e
Refactored UserInfoTable#getAllUserInfo to a better query
2019-02-16 14:28:13 +02:00
Rsl1122
d5adc7f428
Refactored UserInfo to have Server UUID in it
2019-02-16 14:28:12 +02:00
Rsl1122
f7e28346e9
Removed UserInfoNameComparator - not used
2019-02-16 14:28:11 +02:00
Rsl1122
44bc2c01fa
Removed UserInfoTable#getUserInfo - not used
2019-02-16 14:28:11 +02:00
Rsl1122
b0170b76af
GeoInfoTable now static info class:
...
- Made constructor private
- Removed getter from SQLDB
2019-02-16 14:28:10 +02:00
Rsl1122
0799674de3
Refactored GeoInfoTable#getNetworkGeolocations to a query:
...
- Changed WorldMap to use the Map instead of calculating from a list,
saves memory.
- Network container now uses the new query to save memory
2019-02-16 14:28:09 +02:00
Rsl1122
6478477eec
Refactored GeoInfoTable#getGeoInfo into a query
2019-02-16 14:28:09 +02:00
Rsl1122
00c2c56717
Split PlayerFetchQueries from OptionalFetchQueries
2019-02-16 14:28:08 +02:00
Rsl1122
cb22c0f80a
Refactored GeoInfo storage into a Transaction:
...
- Refactored GeoInfoTable#saveGeoInfo into queries
- Removed IPUpdateProcessor
2019-02-16 14:28:07 +02:00
Rsl1122
87d77240fa
Since queries are now allowed, delegated Patch#shouldBeExecuted
2019-02-16 14:28:06 +02:00
Rsl1122
3ab30f8b9f
Transactions can now be executed within other Transactions:
...
- No save point/connection management overhead.
2019-02-16 14:28:06 +02:00
Rsl1122
edb6a6eb72
Refactored WorldTimesTable#getWorldTimesOfUser to a query
2019-02-16 14:28:05 +02:00
Rsl1122
767bc89db0
Fixed CommonDBTest#worldNamesAreStored
2019-02-16 14:28:04 +02:00
Rsl1122
b4a125b4b5
Renamed AggregateQueries to ServerAggregateQueries
2019-02-16 14:28:03 +02:00
Rsl1122
57827b9154
Changes to WorldTable:
...
- Removed 'extends Table'
- Made constructor private
- Now only contains static variables and methods
- Removes getter from SQLDB
2019-02-16 14:28:02 +02:00
Rsl1122
b5ecc227f1
Removed WorldTable#saveWorlds
2019-02-16 14:28:01 +02:00
Rsl1122
35d5db638d
Removed WorldTable#getWorldNames
2019-02-16 14:28:00 +02:00
Rsl1122
a548ae6cf6
Removed WorldTable#saveWorlds
2019-02-16 14:28:00 +02:00
Rsl1122
9e9196b181
Transaction for storing World names.
...
Used on Gamemode change, World change or on join event.
This should ensure that the world name is stored when the session is
saved.
2019-02-16 14:27:59 +02:00
Rsl1122
d095c791fb
Moved db.sql.queries to db.access.queries
2019-02-16 14:27:58 +02:00
Rsl1122
4805498e41
Save world name when session is saved (temporarily) - fix
2019-02-16 14:27:57 +02:00
Rsl1122
b3d9efc502
Removed WorldTable#getWorlds() - not used
2019-02-16 14:27:56 +02:00
Rsl1122
02a3a0a58a
New worlds now saved when session is saved (temporarily):
...
This behavior is to be changed once World change event runs its own
transaction for storing new world names.
2019-02-16 14:27:56 +02:00
Rsl1122
69abb4d406
Removed ServerTable:statementSelectServerNameID - not used
2019-02-16 14:27:55 +02:00
Rsl1122
4ecf98edfd
Removed NicknamesTable#getAllNicknames - not used
2019-02-16 14:27:54 +02:00
Rsl1122
a63ab7d65c
Refactored SessionsTable#saveSession to an executable:
...
Affected:
- KillsTable#savePlayerKills
- WorldTimesTable#saveWorldTimes
- KillsTable and WorldTimesTable where execution contained duplication
with LargeStoreQueries, mainly INSERT_STATEMENT and batch additions
- SessionCache#endSession now returns an Optional Session for future
refactoring, when Logout transaction is being made.
2019-02-16 14:27:53 +02:00
Rsl1122
dc6ce30015
Refactored CommandStoreTransaction stuff into executables
2019-02-16 14:27:52 +02:00
Rsl1122
4315b53ca3
[ #900 ] Refactored WorldTimesTable#getWorldTimesOfServer to a query:
...
- Changed GROUP BY to group by world_name instead, this should fix the
issue, even if it could not be reproduced.
2019-02-16 14:27:51 +02:00
Rsl1122
0a7695a3d3
[ #900 ] Attempt to reproduce bug with a test
2019-02-16 14:27:51 +02:00
Rsl1122
4809f0e7de
Missing license header to CommandStoreTransaction
2019-02-16 14:27:50 +02:00
Rsl1122
2951be69a5
CommandStoreTransaction, changes to CommandUseTable:
...
- Refactored CommandUseTable#commandUsed into a transaction
- Removed 'extends Table' from CommandUseTable
- Made CommandUseTable constructor private
- Removed SaveOperations#commandUsed
- Removed CommandProcessor
2019-02-16 14:27:50 +02:00
Rsl1122
9b7e12ccfb
Replace usages of FetchOperations that fetch containers with the queries
2019-02-16 14:27:49 +02:00
Rsl1122
8fe712ccfe
Fix sql syntax error
2019-02-16 14:27:48 +02:00
Rsl1122
03335ec145
Removed CommandUseTable id related methods - not used
2019-02-16 14:27:47 +02:00
Rsl1122
41275a1f84
Refactored CommandUseTable#getCommandUse to a query
2019-02-16 14:27:45 +02:00
Rsl1122
e309f83c3d
Removed CommandUseTable#getCommandUse() - not used
2019-02-16 14:27:44 +02:00
Rsl1122
0fae44cc80
Removed SQLDB#createTables
2019-02-16 14:27:44 +02:00
Rsl1122
73c9f71166
Refactor DB index creation task into a transaction
2019-02-16 14:27:43 +02:00
Rsl1122
300dc69e33
Fixed networkContainerSupportsAllNetworkKeys by:
...
- Ignoring Deprecated key fields when requiring support
2019-02-16 14:27:42 +02:00
Rsl1122
4ee31de3ed
Refactored SQLDB#clean into a transaction
2019-02-16 14:27:42 +02:00
Rsl1122
0f79263424
Refactored TPSTable#getPeakPlayerCount+derivatives to queries:
...
Optimizes fetch for the player peaks
2019-02-16 14:27:41 +02:00
Rsl1122
35e967e2eb
Renamed some OptionalFetchQueries to start with fetch
2019-02-16 14:27:41 +02:00
Rsl1122
dcde2e559f
Removed TPSTable#getAllTimePeak() - not used
2019-02-16 14:27:40 +02:00
Rsl1122
08e0a4b6eb
Removed TPSTable#getTPSData() - not used
2019-02-16 14:27:39 +02:00