Follow TV Tropes

Following

Converting all data to UTF8 (now complete)

Go To

Hey tropers, we are about to undergo a large update to the tvtropes' database to convert the encoding. During this time the login system will be offline. You'll still be able to read TVTropes but you won't be able to post or edit anything during the conversion.

How long will the login system be down?

My most recent test run took 9 hours (my first test took 20+ hours so this is after a lot of optimizations to get down to 9 hours). ***it will now take 11 hours. see update below

Can you give me more details?

TVTropes was originally hosted on Windows' servers back in the day and all content on the site is encoded with Windows 1252 (a superset of ISO-8859-1, aka latin1).

According to the W3Tech, only 1.3% of internet traffic is ISO-8859-1. I'm guessing a large amount of that is TVTropes considering we have millions of pages defined with that charset.

The majority of the internet is encoded in UTF8. By doing this conversion it will bring us up to modern standards with the rest of the web and allow us to more easily support other languages and icons. It will also allow us to use more modern tools to help with editing such adding a WYSIWYG editor option. It will also help with code development as we often have to add special workarounds to continue to support this long deprecated charset.

Are we changing anything else?

While we have the login system offline, we are going to upgrade the edits history database table to include a sequence number. We've always wanted to do this but it could not be done while the site was online. That table has 40M+ rows of data. With this change we'll be able to make it so we can easily jump to any page when filtering to edits from a specific page or from a specific user. We have this for the forum and that's why you can jump to page 500 for example of a long running thread and not have a long delay.

When will this happen?

UPDATE: (take two) This is now scheduled for Mon Dec 5th at 8:30PM PST until Tue Dec 6th at 7:30AM

At 8:30PM PST you will be logged-off of TVTropes so make sure to save anything before that time. Once the conversion is done the next morning, I'll point the code to the new server and everyone should be auto logged in. If not, when you see the all clear announcement at the top of the page, go ahead and try logging in again.

The process will take approximately 11 hours. I had it down to 9 hours until I found examples of utf8 encoded values inside latin1 columns so I had to add some extra testing to ensure that data doesn't get double encoded in the process.

If you have any issues during the migration please send an email to thestaff@tvtropes.org

UPDATE: (complete) The migration is officially complete. It ended up taking nearly 12 hours but we got there. All data on TVTropes (hundreds of millions of rows of data) has now been converted from Latin1 to UTF8. We now have the same encoding as 99% of other websites and can support special characters and other languages. It will also allow us to build other tools such as a WYSIWYG editor.

Edited by itcdr on Dec 6th 2023 at 8:48:40 AM

kory Admin from a universe without doors (The New Guy) Relationship Status: watch?v=dQw4w9WgXcQ
Admin
#101: Dec 4th 2023 at 7:35:49 PM

Read-only

Now monitoring Wishlist and Bugs
HeraldAlberich from Ohio (Before Recorded History) Relationship Status: Gonna take a lot to drag me away from you
#102: Dec 4th 2023 at 7:36:38 PM

Just to clarify, will the site be down entirely or just read-only while this is going on?

Read-only. The site displays a cached version (without the very newest edits) for non-logged-in visitors, so that’s what everyone will see. [nja]

There’s about an hour to go before the conversion begins.

Edited by HeraldAlberich on Dec 4th 2023 at 10:36:50 AM

itcdr Since: Aug, 2014
#103: Dec 4th 2023 at 7:45:25 PM

45 minutes until I flip the switch to change the site to read-only mode and start the large database update! I'm checking over everything now one last time.

AudioSpeaks2 He/Him (Greenhorn) Relationship Status: Oh my word! I'm gay!
He/Him
#104: Dec 4th 2023 at 7:50:46 PM

Read-only is good.

Time for me to experience the true Trope Browser experience.

Art Museum Curator and frequent helper of the Web Original deprecation project
Siegfried1337 Unofficial co-Wiki Curator for Magnificent Bastard from the Ashes Since: Sep, 2018 Relationship Status: A cockroach, nothing can kill it.
#105: Dec 4th 2023 at 8:24:19 PM

So this is what being a lurker feels like... Interesting.

MB Pending | MB Drafts | MB Dates
JMQwilleran Let's Hop to It! Since: Nov, 2011 Relationship Status: Singularity
Let's Hop to It!
#106: Dec 4th 2023 at 8:24:52 PM

Guess we only have a few minutes left. Have a good evening everyone, and hopefully everything is working fine (perhaps better than before!) on the flip-side.

itcdr Since: Aug, 2014
#107: Dec 4th 2023 at 8:30:17 PM

Alright. This will be my last post before the migration. I'm going to switch everything to read-only mode and then start the process.

Ellipsicle Most likely 'to be' from out there Since: May, 2023 Relationship Status: I love you for psychological reasons
Most likely 'to be'
#108: Dec 5th 2023 at 6:37:31 AM

... Are we good?

[Insert clever saying here]
alekos23 𐀀𐀩𐀯𐀂𐀰𐀅𐀑𐀄 from Apparently a locked thread of my choice Since: Mar, 2013 Relationship Status: [TOP SECRET]
𐀀𐀩𐀯𐀂𐀰𐀅𐀑𐀄
#109: Dec 5th 2023 at 6:39:20 AM

I think we're back for now? Haven't seen anything weird yet.

Secret Signature
itcdr Since: Aug, 2014
#110: Dec 5th 2023 at 6:39:25 AM

False start. The migration to the new server failed because I didn't properly reset it after my test run. ugh. I just re-enabled the old server. No changes have been made whatsoever. The old database server was paused and is now re-enabled.

The first 3 hours of the migration is simply copying the data from the old server so the failed message came right after that when I was already asleep.

We'll try again tonight and I'll make sure that's not an issue.

itcdr Since: Aug, 2014
#111: Dec 5th 2023 at 6:41:28 AM

Feel free to use the site fully again now. When I re-do the migration I will of course take a new snapshot of the server at that point.

alekos23 𐀀𐀩𐀯𐀂𐀰𐀅𐀑𐀄 from Apparently a locked thread of my choice Since: Mar, 2013 Relationship Status: [TOP SECRET]
𐀀𐀩𐀯𐀂𐀰𐀅𐀑𐀄
#112: Dec 5th 2023 at 6:42:36 AM

I hope it works out alright this time

Secret Signature
Ellipsicle Most likely 'to be' from out there Since: May, 2023 Relationship Status: I love you for psychological reasons
Most likely 'to be'
#113: Dec 5th 2023 at 6:44:24 AM

Oh no! What needs to be done next time so it goes through?

[Insert clever saying here]
itcdr Since: Aug, 2014
#114: Dec 5th 2023 at 6:51:03 AM

@Ellipsicle, it was dumb. All I had to do was run a "create database" command before starting the migration. I did a full test run before that and then deleted the database so I could start over and forgot to re-create it. The first few hours is making the snapshot of the old server so there were no errors until it tried to actually start loading and converting on the new server.

cwallace135 Since: Oct, 2022 Relationship Status: Singularity
#115: Dec 5th 2023 at 6:55:31 AM

It's okay. Technological issues happen all the time. Update it when things are ready to be sorted out. Thank you!

Edited by cwallace135 on Dec 5th 2023 at 6:57:31 AM

Amonimus the Retromancer from <<|Wiki Talk|>> (Sergeant) Relationship Status: In another castle
the Retromancer
#116: Dec 5th 2023 at 6:56:08 AM

Thankfully the wrong database wasn't wiped, because that can happen.

Would it take faster since "something" was completed?

Edited by Amonimus on Dec 5th 2023 at 5:56:32 PM

TroperWall / WikiMagic Cleanup
Snipertoaster Since: Mar, 2012
#117: Dec 5th 2023 at 7:01:33 AM

Gach. Sorry to hear that. Don'cha just love big, fiddly tech jobs? Fingers crossed all goes well on the next run.

sudrictoon Any pronouns from Sodor/Crystal Tokyo Since: Feb, 2021 Relationship Status: Anime is my true love
Snowball123 Since: Jul, 2023
#119: Dec 5th 2023 at 7:14:14 AM

Hey, maybe we could help you to make it a new database. We are all here around the world support you, and maybe you could let us do the database together.

Ultimatum Disasturbator from Second Star to the left (Old as dirt) Relationship Status: Wishfully thinking
Snowball123 Since: Jul, 2023
#121: Dec 5th 2023 at 7:21:10 AM

Like maybe teamwork makes the dream work 24/7

HarmonyBunny2000 Gamer Bunny Gal from my workplace (AKA my bedroom) (Troper in training) Relationship Status: He makes me feel like I have a heart
Gamer Bunny Gal
#122: Dec 5th 2023 at 7:22:29 AM

Programming is a lot harder than we thought, I guess. Hope things work out tonight.

Ultimatum Disasturbator from Second Star to the left (Old as dirt) Relationship Status: Wishfully thinking
Disasturbator
#123: Dec 5th 2023 at 7:24:36 AM

[up][up]No,you cant crowdfund a database!

New theme music also a box
skewview Since: Jun, 2013
#124: Dec 5th 2023 at 7:34:34 AM

It's not all bad, the checklist just got a few new items on it...

Speaking of which, might want to update the times for the new attempt. Also, the banner might need re-initialization... having closed it, there seems to be no way of seeing it again.

[down] What?

Edited by skewview on Dec 5th 2023 at 4:14:17 PM

AFK with issues, will return
ZuggaluggalocoroG Since: Dec, 2022 Relationship Status: This is not my beautiful wife!
#125: Dec 5th 2023 at 7:36:06 AM
Thumped: This post was thumped by moderation to preserve the dignity of the author.
Not even stars last forever.

Total posts: 331
Top