Commit Graph

1934 Commits

Author SHA1 Message Date
Martin Ambrus 6cf2715777 chore: new regexes for new indexed queries 2017-10-27 23:05:48 +02:00
Martin Ambrus 7689e73280 refactor: new market DB index 2017-10-27 23:05:29 +02:00
Martin Ambrus 1cc610802b fix: data generation starts and continues in a different way
It goes from -100, 100 through -99, 100 all the way up to 100, -100.
Anything else breaks the map coordinates.
2017-10-27 22:44:32 +02:00
Martin Ambrus 5a967055f4 refactor: using indexed temporary table as array works speed wonders :) 2017-10-27 21:04:16 +02:00
Martin Ambrus 0d84b5f3b4 fix: MySQL variables can't be used inside IN statements as such
So, if we want to do something like "WHERE abc IN ( @ids )", where @ids
would contain a string of "1,2,3", we can't and would need to use
FIND_IN_SET() function instead.
2017-10-27 19:36:27 +02:00
Martin Ambrus 576dfdf950 chore: README update 2017-10-27 19:34:57 +02:00
Martin Ambrus 1e9098505e fix: login + logout pages redirect to install, if not installed yet 2017-10-27 19:34:47 +02:00
Martin Ambrus 3200cf2c3c fix: multi_query doesn't block next queries anymore 2017-10-27 19:34:19 +02:00
Martin Ambrus 1066fff9a2 refactor: installation happens at MySQL side
A lot has happened here. Here's the list:

1. autoloader was added that should prevent various "failed to open
stream" errors when trying to load new classes

2. PHP-based data generation was replaced by MySQL-based one, hopefully
fixing the installation problems when insert payload it too high and the
DB wouldn't populate with some users

3. thanks to step 2, the installation should be really almost
instantenious, instead of waiting a long time for many SQL connections
and queries to populate the world

4. World Data & Oasis generation and population is done in 1 step now
2017-10-27 18:27:03 +02:00
Martin Ambrus 93fbba445e fix: big map not centered on screen in high resolutions
Closes #239
2017-10-26 21:07:27 +02:00
Martin Ambrus 91736e6209 fix: dang, type hinting is only for PHP7... bleee :P 2017-10-26 11:43:08 +02:00
Martin Ambrus 743a6a3f90 fix: open quote was left unattended :P 2017-10-25 23:47:22 +02:00
Martin Ambrus b12e4ef2b7 fix: show Natar villages in stats when allowed 2017-10-25 23:41:39 +02:00
Martin Ambrus 50a45cc0ac chore: a new helpful ToDo 2017-10-25 23:41:21 +02:00
Martin Ambrus 7def98f081 feat: Farms generation via Admin must be fair (= random all over map) 2017-10-25 18:42:13 +02:00
Martin Ambrus b5a0789ff2 fix: we could really use autoloader... later, later... 2017-10-25 18:17:46 +02:00
Martin Ambrus df5400be79 fix: unstupiding my own stupidity :-D 2017-10-25 17:18:40 +02:00
Martin Ambrus 099a7307e3 fix: new DB class to consider installation 2017-10-25 14:54:23 +02:00
Martin Ambrus 30d3b9c4fa refactor: OOP code movements started :) 2017-10-25 13:38:38 +02:00
Martin Ambrus ab461e5945 chore: new ToDos 2017-10-25 08:08:50 +02:00
Martin Ambrus dc0e6b6941 fix: undefined index 2017-10-25 08:08:49 +02:00
Martin Ambruš dcde4f9c4d feat: end screen should contain chmod info 2017-10-25 06:55:21 +02:00
Martin Ambrus 8b8d9b839e chore: mysql slow query log reveals which queries do not use indexes ;) 2017-10-24 22:42:40 +02:00
Martin Ambrus 30cd0158c3 chore: 2 more indexes 2017-10-24 22:42:05 +02:00
Martin Ambrus d6c517bba6 refactor: this would use a database index 2017-10-24 22:40:25 +02:00
Martin Ambrus 961a11d16a fix: raidable admin in installation script configured properly 2017-10-24 21:29:18 +02:00
Martin Ambrus 19cb9e230c fix: SQL duplication of key 2017-10-24 21:04:33 +02:00
Martin Ambrus e033f597a9 chore: new ToDo 2017-10-24 20:54:54 +02:00
Martin Ambrus 10de37d295 chore: apart from Admin, we should have almost all front-end regexes now 2017-10-24 20:54:47 +02:00
Martin Ambrus 1f4c7768d4 chore: one more SQL optimization to go 2017-10-24 20:54:05 +02:00
Martin Ambrus a33c4e2408 chore: ToDos and new regexes 2017-10-24 19:17:40 +02:00
Martin Ambrus 042c6012d4 chore: SQL optimizations, indexes 2017-10-24 19:17:26 +02:00
Martin Ambrus 7741721590 fix: wrong order by clause 2017-10-24 18:37:46 +02:00
Martin Ambrus c7dec214f8 fix: unstupiding stupid SQL 2017-10-24 17:29:22 +02:00
Martin Ambrus ffd3bf373c fix: non-numeric values could be present for empty values 2017-10-24 17:20:32 +02:00
Martin Ambrus 6ab2cfe896 chore: mostly forum regexes for the debug tool 2017-10-24 13:29:17 +02:00
Martin Ambrus adb1aaa860 chore: SQL optimizations, indexes 2017-10-24 13:29:00 +02:00
Martin Ambrus b3feb3f2b1 fix: missing AND 2017-10-24 13:18:48 +02:00
Martin Ambrus 41a6768d05 chore: new debug regexes 2017-10-24 11:35:33 +02:00
Martin Ambrus aab1010906 fix: super-strange id + 0 query that totally prevents the use of indexes 2017-10-24 09:55:18 +02:00
Martin Ambrus d12be30634 fix: commenting-out BBCode dynamic replacements, as they are broken 2017-10-24 09:31:43 +02:00
Martin Ambrus 79705fbc10 fix: crazy SQL :) 2017-10-24 09:04:10 +02:00
Martin Ambrus 8cef188fa8 refactor: more SQL optimizations and regexes 2017-10-23 20:26:41 +02:00
Martin Ambrus f6c7128148 chore: more SQL optimizations and regexes for the tool 2017-10-23 19:20:15 +02:00
Martin Ambrus e90b1e921c chore: new regexes to check for queries in MySQL general query log 2017-10-23 18:10:02 +02:00
Martin Ambrus e3ce9427e0 refactor: market SQL optimization 2017-10-23 18:09:41 +02:00
Martin Ambrus ffeffd30e9 chore: tooling to help with certain mundane tasks 2017-10-23 17:51:15 +02:00
Martin Ambrus 5567bcd85d refactor: DB optimizations 2017-10-23 17:50:33 +02:00
Martin Ambrus 40ad09865c fix: a possible fix for duplicating unit IDs and creating wrong SQL 2017-10-23 17:50:13 +02:00
Martin Ambrus 12687766b6 refactor: much speedier installation process 2017-10-23 13:38:32 +02:00