Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Duplicate Tweets? #55

Closed
navjotjsingh opened this issue Jul 4, 2013 · 5 comments
Closed

Duplicate Tweets? #55

navjotjsingh opened this issue Jul 4, 2013 · 5 comments

Comments

@navjotjsingh
Copy link

This API change has messed up my archive. I am yet to upgrade because my old archive now has some 10000+ odd duplicate tweets. Some tweets ended up getting posted even 5 times. Example - http://tweets.nspeaks.com/2013/05/31 This started sometime in april. I should have stopped syncing but I detected it late. How to do away with all these duplicate tweets before I upgrade the archive?

@graulund
Copy link
Owner

graulund commented Jul 4, 2013

Since a notable part of the upgrade process was to eliminate tweet duplicates by upgrading the SQL tweets table, making sure that the tweet id column is always unique, I am lead to believe this upgrade hasn't progressed as it should have. Please double check that there is a UNIQUE index on column tweetid in table tweets in the database. Thanks!

@navjotjsingh
Copy link
Author

These are the currently listed indexes on the table. No unique index on the tweetid column. What should I do? Authorize.php found only 1 duplicate tweet while upgrading. I still have 12741 duplicate tweets left in the database.

2013-07-05_09-38-44

@graulund
Copy link
Owner

graulund commented Jul 5, 2013

The most easy option is definitely to start over and install from scratch, and get your tweets from a Twitter archive. You could remove every duplicate manually, but that would obviously be tedious.

@navjotjsingh
Copy link
Author

I had that in my mind too but for some reason even that was failing[out of memory errors]. Anyways managed to get rid of the duplicates thanks to the trick mentioned here: http://www.devcha.com/2008/03/how-to-remove-duplicate-records-with.html

Thanks for the help.

@graulund
Copy link
Owner

graulund commented Jul 5, 2013

Now that you have no duplicate tweets, run upgrade.php to make sure the tables are as they should be. :)

@graulund graulund closed this as completed Jul 5, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants