-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add populateHashField.php
#3611
Conversation
This is mainly of interested for users who have a huge We may trust people to run |
@kghbln On some thread (can't find the ref) you mentioned that it may take up the 15 min to run Crucial part is the information we store in |
I will "rename" the file from "update key file" to "setup key file" in the docu since this appears to be more appropriate in the light of this enhancement. |
Second thoughts, now "setup information file". |
Fine by me, I hadn't any name in mind so I generally refer to it as |
Fair enough. I just figured something a bit more descriptive and more intuitive is good for the end users "marketing wise". |
At first it just contained the upgrade key but I needed a place to store certain information without relying on a DB connection (also we cannot manipulate |
To be clear, the message will be shown an every page to really "annoy" users so that administrator gets his act together and runs the job. It is also a warning to the end-user that something hasn't been finished and they should avoid data intensive work. |
Back-ported with 8f1177a |
Just upgraded a rather big instance:
For 4 Cores, 10 GB RAM with PHP 7.0.x it took 7 minutes + another 5 minutes for the first 200,000 rows. |
@mwjames Not sure if related to the changes connected with this feature, but the size of the database connected to the wiki mentioned in my previous post dropped from 3.3 GB to 1.9 GB [!sic]. Talking about more efficient data storage. :) |
@mwjames Not sure if related to the changes connected with this feature, but
the size of the database connected to the wiki mentioned in my previous post
dropped from 3.3 GB to 2.9 GB. Talking about more efficient data storage.
:)
There could be several reasons including that outdated entities have
been removed from the DB hereby no longer occupying any table space.
Also, one has to remember that the "raw" data alone doesn't count
towards the size, indices count as well and we made some changes in
3.0 to the table index structure.
Orthogonal to the mentioned size changes here, the 3985 issue
scratches a different topic but would have a similar impact on the
size especially for users that use text properties frequently where
unique term values are at the lower end of the distribution [0] (see
`unique_terms_occurrence_in_percent`).
[0] https://sandbox.semantic-mediawiki.org/w/index.php?title=Sp%C3%A9cial:SemanticMediaWiki&action=stats%2Ftable
…On 6/3/19, Karsten Hoffmeyer ***@***.***> wrote:
@mwjames Not sure if related to the changes connected with this feature, but
the size of the database connected to the wiki mentioned in my previous post
dropped from 3.3 GB to 2.9 GB. Talking about more efficient data storage.
:)
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#3611 (comment)
|
This PR is made in reference to: #
This PR addresses or contains:
update.php
run for a considerable timesmw_hash
conversion task. The initial update ofsmw_hash
(Add IDs warmUpCache #3080) only happens once when switching to 3.0 and with a set execution threshold of200000
(meaning missing converted rows) the conversion will be part of the normalupdate.php
/setupStore.php
routine, hereafter the process is postponed (the status is saved in.smw.json
) to allow administrators to quickly run the upgrade while a message will start to appear to remind users and administrators that the upgrade hasn't finished yet and requires immediate action.smw_hash
, thepopulateHashField.php
script is provided to finalize the conversion and set the"populate.smw_hash_field_complete": true
.smwgConfigFileDir
, refs 3506, 3563 #3596 (comment)),.smw.json
will contain more than the upgrade key allowing the system to store state information hereby providing a method to check its software, upgrade, and components.This PR includes:
Example