Sorry, didnt read the second post.  If it just needs the count, then ping 
the DB as it could process faster.  I thought you needed access to all the 
info.

On Wednesday, April 9, 2014 12:14:17 PM UTC-7, Mike Leong wrote:
>
> Maybe use the service to get all the info once and create another db on 
> the front end (we used Nedb).  It seems quick and you can index how you 
> need to.  Keeps it to 1 call to backend.
>
> On Wednesday, April 9, 2014 6:29:14 AM UTC-7, cutey Love wrote:
>>
>> Hi Everyone,
>>  
>> I'm looking for some advice before creating an app.
>>  
>> Essentially my app has hotel listings then I need a live calculator that 
>> returns the number of hotels that meet the criteria.
>>  
>> So sliders with information like number of rooms, number of people 
>> staying, hotel location.
>>  
>> There are about 15,000 listings.
>>  
>> They are in MySQL and will be outputted by php -> Json.
>>  
>> Now am I best to:
>>  
>> 1. Download all 15,000 listings on load and then use angular filters etc 
>> to sort the data and return the number that match.
>>  
>> 2. Send a query and have php generate the Json that matches the criteria, 
>> run it in MySQL and then return the number of records.
>>  
>> 3. Another way?
>>  
>> All of this needs to be live and as quickly as possible, so as a slider 
>> moves, new number is generated.
>>  
>> Thanks any advice would be great.
>>  
>>  
>>  
>>  
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to