Closed Bug 509078 Opened 17 years ago Closed 16 years ago

[W-2.4.3] Similar Collections

Categories

(addons.mozilla.org Graveyard :: Collections, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: fligtar, Assigned: jbalogh)

References

()

Details

Attachments

(2 files, 1 obsolete file)

As mentioned in bug 506800, Jeff wants to add Similar Collections as well. Each collection display page should have a box labeled "Similar Collections" in the sidebar. It should list up to 5 *public* similar collections that are not auto-publishers.
Target Milestone: 5.0.9 → 5.1
Target Milestone: 5.1 → 5.2
Target Milestone: 5.2 → 5.3
Target Milestone: 5.3 → 5.4
An update: figuring out the correlations takes 88 minutes (since there's lot of collections). Looking at similar collections is not very useful since you have to figure out which one or two add-ons are not in both collections. But computers are great at doing mundane stuff like that, so I'm going to use the correlation scores to find similar add-ons that aren't in this collection. This is good since we want people to discover add-ons, not collections, and we'll be able to use the same methods for doing personalized recommendations in the future. We'll have to filter out "popular add-ons" or Adblock and Firebug and the Collector extension will be recommended everywhere. I might look into doing the comparison loop in C for speed.
Attachment #414527 - Flags: review?(clouserw)
This is really slow right now (> 45 minutes), but I'm looking at ways to speed it up today, first with a smarter algo and then C. The comparisons could be parallelized, but IT is scared of me swamping their box right now. Run it with 'python build-recommendations collections'.
Comment on attachment 414527 [details] [diff] [review] add-on recommendations from collections The migration is broken (looks like you copied/pasted incomplete lines) and the script dies when, I think, there are no existing records: Traceback (most recent call last): File "build-recommendations.py", line 189, in <module> main() File "build-recommendations.py", line 185, in main return cmd() File "build-recommendations.py", line 143, in __call__ self.recommend() File "build-recommendations.py", line 174, in recommend 'VALUES ' + records) File "build/bdist.linux-i686/egg/MySQLdb/cursors.py", line 173, in execute File "build/bdist.linux-i686/egg/MySQLdb/connections.py", line 36, in defaulterrorhandler _mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1")
Attachment #414527 - Flags: review?(clouserw) → review-
Attachment #414584 - Flags: review?(clouserw)
Attachment #414527 - Attachment is obsolete: true
(In reply to comment #4) > (From update of attachment 414527 [details] [diff] [review]) > The migration is broken (looks like you copied/pasted incomplete lines) That's what happens when lines are too big for my screen!
Comment on attachment 414584 [details] [diff] [review] add-on recommendations from collections This works, but we're going to have to nice it way down. Long running 100% cpu scripts make me sad. Maybe this can be our first hudson job, though. >+ cursor.execute('INSERT INTO collection_addon_recommendations ' >+ 'VALUES ' + records) Stuff like this can break mysql when the query gets too large. You're dropping over 100000 rows in and it doesn't seem to mind, but I don't know how close to the limit that is and we've hit it before. I think you should break it up into chunks.
Attachment #414584 - Flags: review?(clouserw) → review+
Status: NEW → RESOLVED
Closed: 16 years ago
Keywords: push-needed
Resolution: --- → FIXED
krupa: there was an unknown issue with the script today; I'll be debugging with fox2mike tomorrow morning.
Blocks: 510173
This apparently introduced foreign keys that are not resolved on collection deletion (bug 510173 regressed). Please add that.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #415662 - Flags: review?(fwenzel)
Comment on attachment 415662 [details] [diff] [review] cascade collection or addon deletions Yup, that looks good. Prolly need to have that applied to preview so stephend can verify?
Attachment #415662 - Flags: review?(fwenzel) → review+
r57155. I applied the migration on preview, maybe it will make stephend happy.
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
Depends on: 532460
No longer depends on: 532460
https://preview.addons.mozilla.org/en-US/firefox/collection/sport doesn't have any "Related Collections" or "From Similar Collections" included -- should it?
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: