Topic: A stupid mistake
Hi Guys,
Yesterday, I updated my backfill module to lessen duplicate issues...
My mistake was, I deployed it without even testing it...
Yeah stupidity... I was so sleepy that time and made a gamble.
Shockingly this morning, my site went down.
I checked my database and a single job is inserted for about 1.7 million!
The table now is 4Gb+ and phpmyadmin cannot handle deletion of such number of records.
I can't empty my table because I don't have backup... (my schedule is next week)
So first, I need your suggestions on how to delete the records...
I know the query but what I mean is I can't delete all of it at once.
I know how to code also, I just need the design on how will the process be.
I have ideas in my mind but I just want to ask the experts on what they have to say.
(Yes, it was plain stupidity... before you answer, tell me that I am stupid please.. haha!)
Now, secondly... how come that my site went down?
I mean, it should not be a problem when jobs reaches that amount of records right?
It seems that jobberbase wasn't able to handle the fetching of data that is why I get
"Gateway Timeout" and "Internal Server Error" if you visit my site.
I am no expert and would just like to ask some questions.
This is my first website that I administrate and yes, I made this site so that I could gain experience.
So please,... share. I love to talk to experts and exchange ideas with other newbies like me.
A while ago, I opened the class jobs and found out that the method GetJobs
fetches first all the ID that satisfies the conditions passed on and then the jobs are queried one by one.
My question is,.. is that process more efficient than querying all of it at once?
Thanks. Hope get answers and learn from you guys.
I beg you. haha! :p