Search on the last two months records

Posted 11 months ago by eddy1992

Hi I have a situation where I have millions of records in a table and I dont want to search the whole record set all times. Imagine I have a products table and I have 1 million products of last 5 years and to search something like finding product name I have to search the whole records, can I do something like search only the last two months records. So that the performance improves. If yes how will I do it using eloquent ?

please assist.

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.