2

So Special:SMWAdmin > "Data repair and upgrade" "offers a feature to restore all Semantic MediaWiki data based on the current contents of the wiki". Where rebuildData.php "recreates all the semantic data in the database".

What exactly is the difference (besides working command line or not)? Is there any difference? Or just calls Special:SMWAdmin the rebuildData.php script?

We're using SMW 2.2.

waanders
  • 8,907
  • 22
  • 70
  • 102
  • I'm not entirely sure so I'll put it here instead of as an answer. It seems to me they do the same thing, but `SMW_refreshData.php` runs all the refresh operations immediately whereas the function from the "Data repair and upgrade" adds the tasks to MediaWiki's job queue to be carried out progressively. – JosefAssad Jun 16 '15 at 07:54
  • You might want to discuss this at https://semantic-mediawiki.org/wiki/Help_talk:Repairing_SMW%27s_data. Not all SMW developers are on stackoverflow – Wolfgang Fahl Jun 24 '15 at 13:23

1 Answers1

1

The essential difference is that Special:SMWAdmin only ''queues'' the updates in the job queue, while rebuildData.php actually performs the updates.

If your job queue is correctly configured, the difference may be trivial; otherwise you'll run into performance issues. A common error is to have insufficient memory for the job runner. If all else fails, the last resort is null-editing all the pages.

The difference was actually written in the help page, but in a weird English; fixed that too.

Nemo
  • 2,441
  • 2
  • 29
  • 63