Wow, 7M external links.
That's a lot of chopped pork and ham :D
Good work :cheers:
The resurrection of atari-wiki.com
-
chronicthehedgehog
- Site sponsor

- Posts: 383
- Joined: 08 May 2022 18:11
- Location: The Midlands
-
exxos
- Site Admin

- Posts: 28344
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: The resurrection of atari-wiki.com
Yes, did I mention the database is pretty bad ? :lol:chronicthehedgehog wrote: 17 Nov 2023 11:07 Wow, 7M external links.
That's a lot of chopped pork and ham :D
-
troed
- Posts: 936
- Joined: 21 Aug 2017 22:27
Re: The resurrection of atari-wiki.com
Absolutely awesome work Chris! This is such a valuable resource.
-
exxos
- Site Admin

- Posts: 28344
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: The resurrection of atari-wiki.com
:thanksyellow:
-
exxos
- Site Admin

- Posts: 28344
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: The resurrection of atari-wiki.com
That completed quicker than I thought.
5.5million revision tables scanned.
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.
5.5million revision tables scanned.
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.
-
exxos
- Site Admin

- Posts: 28344
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: The resurrection of atari-wiki.com
ChatGPT made me chuckle with the code it wrote... Use with caution :lol: yeah right! :fire: :hide: :fire:
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:
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.
-
exxos
- Site Admin

- Posts: 28344
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: The resurrection of atari-wiki.com
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:
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
What's the database engine? MySQL? If so there must be something wrong with the way the deletion is done
-
exxos
- Site Admin

- Posts: 28344
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: The resurrection of atari-wiki.com
Yeah mySQL.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
It only does this.
Code: Select all
$deleteSql = "DELETE FROM revision WHERE rev_text_id = $revTextId";
$conn->query($deleteSql);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...
-
stephen_usher
- Site sponsor

- Posts: 7376
- Joined: 13 Nov 2017 19:19
- Location: Oxford, UK.
Re: The resurrection of atari-wiki.com
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.
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.
Who is online
Users browsing this forum: ClaudeBot and 3 guests