The resurrection of atari-wiki.com

Latest Atari related news.
User avatar
chronicthehedgehog
Site sponsor
Site sponsor
Posts: 383
Joined: 08 May 2022 18:11
Location: The Midlands

Re: The resurrection of atari-wiki.com

Post by chronicthehedgehog »

Wow, 7M external links.

That's a lot of chopped pork and ham :D

Good work :cheers:
User avatar
exxos
Site Admin
Site Admin
Posts: 28344
Joined: 16 Aug 2017 23:19
Location: UK

Re: The resurrection of atari-wiki.com

Post by exxos »

chronicthehedgehog wrote: 17 Nov 2023 11:07 Wow, 7M external links.

That's a lot of chopped pork and ham :D
Yes, did I mention the database is pretty bad ? :lol:
troed
Posts: 936
Joined: 21 Aug 2017 22:27

Re: The resurrection of atari-wiki.com

Post by troed »

Absolutely awesome work Chris! This is such a valuable resource.
User avatar
exxos
Site Admin
Site Admin
Posts: 28344
Joined: 16 Aug 2017 23:19
Location: UK

Re: The resurrection of atari-wiki.com

Post by exxos »

troed wrote: 17 Nov 2023 11:27 Absolutely awesome work Chris! This is such a valuable resource.
:thanksyellow:
User avatar
exxos
Site Admin
Site Admin
Posts: 28344
Joined: 16 Aug 2017 23:19
Location: UK

Re: The resurrection of atari-wiki.com

Post by exxos »

That completed quicker than I thought.

5.5million revision tables scanned.

Capture.PNG

Next to make sure the "found" count matches the number of posts in the text database, then delete the invalid entries in the revision database.
You do not have the required permissions to view the files attached to this post.
User avatar
exxos
Site Admin
Site Admin
Posts: 28344
Joined: 16 Aug 2017 23:19
Location: UK

Re: The resurrection of atari-wiki.com

Post by exxos »

ChatGPT made me chuckle with the code it wrote... Use with caution :lol: yeah right! :fire: :hide: :fire:

Capture.PNG

Let the carnage commence...

EDIT:

Looks like it's likely to take several hours to clean up the revisions database. One thing I have noticed is that some of the wiki actual pages are not in the text database at all. There was a discrepancy of several thousand indexes. I won't know until it's finished cleaning up the revision table. Though things like the wiki about page currently don't seem to be linked in the text table at all. So they must be in some other part of the database :shrug:
You do not have the required permissions to view the files attached to this post.
User avatar
exxos
Site Admin
Site Admin
Posts: 28344
Joined: 16 Aug 2017 23:19
Location: UK

Re: The resurrection of atari-wiki.com

Post by exxos »

Does anyone know why deleting entries is incredibly slow ? It seems to be taking like 20 seconds to delete a row. I can only assume because there are literally millions of entries in the database, but I did not really have this slowdown with the text database. I thought deleting 50 at once was slow :lol:

It's been going three hours now and the file size in my debug log is only 1,337,251. The size of the "read only" log is 231,919,539 and did not take many minutes to complete. So according to my mathematical guesswork, it is going to take approximately 520 hours to clean up the table :roll:
troed
Posts: 936
Joined: 21 Aug 2017 22:27

Re: The resurrection of atari-wiki.com

Post by troed »

What's the database engine? MySQL? If so there must be something wrong with the way the deletion is done
User avatar
exxos
Site Admin
Site Admin
Posts: 28344
Joined: 16 Aug 2017 23:19
Location: UK

Re: The resurrection of atari-wiki.com

Post by exxos »

troed wrote: 17 Nov 2023 16:20 What's the database engine? MySQL? If so there must be something wrong with the way the deletion is done
Yeah mySQL.

It only does this.

Code: Select all

$deleteSql = "DELETE FROM revision WHERE rev_text_id = $revTextId";
             $conn->query($deleteSql);
Nothing different than I was doing before with the text database. But the revision database is going to take 22 days at this rate :(

SQL is also maxing out one of the CPU cores. It did that while working on the text database, but it varied a lot. Now it's just flatlined 100%. I did wonder if running the script twice would be faster. But I doubt it, SQL seems to "lock up" if you try and access the database multiple times at once.

The only time I've really seen this behaviour is on the forum when the SQL database was crashing. But I'm not seeing anything in the logs indicating that what I can tell. I have seen it when the disk is full it runs incredibly slow but there is 80% free...
User avatar
stephen_usher
Site sponsor
Site sponsor
Posts: 7376
Joined: 13 Nov 2017 19:19
Location: Oxford, UK.

Re: The resurrection of atari-wiki.com

Post by stephen_usher »

MySQL does seem highly inefficient when it comes to deleting or many table operations.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.

Return to “NEWS & ANNOUNCEMENTS”

Who is online

Users browsing this forum: ClaudeBot and 3 guests