The resurrection of atari-wiki.com

Latest Atari related news.
User avatar
chronicthehedgehog
Posts: 174
Joined: Sun May 08, 2022 6:11 pm
Location: The Midlands
Contact:

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: 23151
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: The resurrection of atari-wiki.com

Post by exxos »

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

That's a lot of chopped pork and ham :D
Yes, did I mention the database is pretty bad ? :lol:
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
troed
Moderator
Moderator
Posts: 880
Joined: Mon Aug 21, 2017 10:27 pm

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: 23151
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: The resurrection of atari-wiki.com

Post by exxos »

troed wrote: Fri Nov 17, 2023 11:27 am Absolutely awesome work Chris! This is such a valuable resource.
:thanksyellow:
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
exxos
Site Admin
Site Admin
Posts: 23151
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: The resurrection of atari-wiki.com

Post by exxos »

That completed quicker than I thought.

5.5million revision tables scanned.

Capture.PNG
Capture.PNG (34.95 KiB) Viewed 78 times

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.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
exxos
Site Admin
Site Admin
Posts: 23151
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

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
Capture.PNG (10.37 KiB) Viewed 71 times

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:
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
exxos
Site Admin
Site Admin
Posts: 23151
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

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:
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
troed
Moderator
Moderator
Posts: 880
Joined: Mon Aug 21, 2017 10:27 pm

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: 23151
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: The resurrection of atari-wiki.com

Post by exxos »

troed wrote: Fri Nov 17, 2023 4:20 pm 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...
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
stephen_usher
Posts: 4942
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

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.
Post Reply

Return to “NEWS & ANNOUNCEMENTS”