is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.
CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.
Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.
Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.
I could use Sphinx search as a solution for this.
Create a real time sphinx index with schema:
I would write inserts to this index for products bought 2 or more,
- sandeepboda91083 January 09, 2014for example product ids 100, 200, 300 bought together then:
insert (main_product_id, other_product_id) values ((100,200), (100,300), (200, 300), (200,100), (300, 100), (300, 200));
To identify other products sorted by most bought when buying product 100 then do:
select @groupby, @count from index where match('@main_product_id 100') group by other_product_id order by @count desc;
Note: @groupby will become an alias of other_product_id and @count shows the number of times it was bought.
Q. What if memory is not sufficient?
A. Sphinx runs in fixed memory which we can pre-define.
Q. How do DB tables look like?
A. one MySql table and one sphinx index with same schema as above. Ofcource we need to a mysql lookup table with product id and description.
Q. If you use multiple DB calls for every request, it may be very inefficient as you might be serving millions of requests. can you improve?
A. One sphinx call is enough for 'Customers who bought also bought' to be done.
Q. Can you state what all components are present in the system and how does the control flow after webserver receives the request?
????