Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7980535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:06:14+00:00 2026-06-04T10:06:14+00:00

Okey so I want to implement a Collaborative Filter algorithm in Java, similar to

  • 0

Okey so I want to implement a Collaborative Filter algorithm in Java, similar to Netflix’s or StumbleUpon’s recommendation algorithms, however I’m not sure if I should do all the computations (Pearson Correlation, Prediction Computation, etc.) on the database, or if I should load all necessary data and do the algorithm’s in Java.

I think the main drawback of doing it in java is that I have to load all the data, on the contrary I think doing it in the database will lead to very complex, error prone queries.

What other advantages or disadvantages do each possibility have?

The Algorithm I’m implementing can be found here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T10:06:15+00:00Added an answer on June 4, 2026 at 10:06 am

    While I haven’t read all the details of the algorithm, I would lean toward doing the actual algorithm implementations in code for several reasons. First, you can likely leverage existing implementations of these algorithms (or at least partial implementations) that are well tested. As you have mentioned, adding this logic to the database can be complex and more difficult to test. Also, if you change your storage engine or format, the code may be tightly coupled to the database making it difficult to reuse.

    If you are doing the algorithm in java, you will have to read the data out of the database, which could lead to large amounts of data in memory. You’ll need to make sure this doesn’t become a limiting factor though – do you need to read ALL of the data at once (which means that at some point RAM will become a limitation), or can you chunk the data and parallelize the operations? If you can parallelize parts of the algorithm, writing the code in Java (or whatever language you choose) will make it easier to split the data (you might even consider using a Map/Reduce framework if the problem fits that framework – again here I haven’t read through the algorithm details).

    In general, I would try to keep business logic out of the database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Posts: I can't seem to get my auth controller working. I'm not sure what
Okey, so this is my problem. I want to use mod_rewrite to make nice
This is really confusing me, it just does not want to work. I did
I have a class in javascript which define the toString method,however when I want
Okey. Here's what I want to do: I have a windows application that sorts
I'm trying to download multiple files using IntentService. The IntentService donwloads them okey as
My current iPhone app uses UIKit. Now I want some small effects in the
Okey, here it goes. I have a block of code that repeats it self
Okey, this is my problem. I have one service class where Ive managed to
in my project, there're name,surname,e- mail regions.then user must tick to Okey.if users entered

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.