I need support for three things.
1.- Index correctly one database to make one query faster.
2.- I have a piece of code in Node with MongoClient that does 7 queries in the same collection to get a certain number of objects. For example, my collection is "Audios". I want 3 audios of language "es", 2 audios of language "en", etcetera. Can those Audios be random? Can it be in only one query? At the moment I do as many queries as languages I want. I will provide actual code, and the actual response I'm looking for.
3.- I have two queries that do regex. One is ^Tom (starts with Tom) and the second is .*Tom.* (contains Tom). I want to display FIRST the one starting with Tom and then, if there are no more, show the one containing Tom. Can you do this with only 1 query?
10 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön
Hello. I have read your project description but I need to ask few questions.. Please feel free to ping me anytime so we can have a detailed discussion.