Skip to content

Commit

Permalink
add a comment about the last products.persist
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxr committed Mar 18, 2014
1 parent d3a88aa commit c9676a6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ class ALS private (
}
}

// The last `products` will be used twice. One to generate the last `users` and the other to
// generate `productsOut`. So we cache it for better performance.
products.persist()

// Flatten and cache the two final RDDs to un-block them
Expand Down

0 comments on commit c9676a6

Please sign in to comment.