Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
Currently, as far as I know, there is no command-line interface for querying Firestore. The only way to query our documents is to do it through our own program, or through Firestore console. In the console, the only way to query a document by its id is to use the browser "Find" feature. However, when the number of documents in a collection increases above a threshold, which I don't know, Google Chrome cannot find the id. It's very inconvenient to scroll through the list of documents and use the find function of the browser again and again to find the id.
Please advise a more efficient way or implement a more efficient way to query documents by id in Firestore Console.
While you can't filter a collection by a document ID, you can find a document with a specific ID by entering it in the little address bar/breadcrumb trail that sits above your data structure in the console.
Steps:
Select the collection that the document is in
Hover over the breadcrumb trail at the top and click on the pencil icon
Enter a / and then the ID of the document
Hit Enter
The console will now load the document with the ID you entered.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Please tell me how much more does it cost to write documents within sub-collections as compared to documents in (main) collections in cloud firestore. I know the query adds one extra step. I am considering using this method for my group chat web app.
It doesn't matter where your write whether it's a sub-collection or main collection firebase will charge same.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I'm studying Java since 8/2020 ans I'm making recipe app for my school project.
I'm using android studio,Java and currently finished making Frontend UI , every layout of my app and connected to FireBase.
on my app I want users to add their food,health data on app and get recipe which fit for their data.
At this point I want to know what tool,program should I use to build my recipe recommendation algorithm and apply it on my app,Firebase.
I searched many Question,post on google and couldn't find what to use.
This is my first complicated app and I don't know much about programming
I'm stuck at this point for 5 days. Can somebody Help me?
The question can have a vast number of answers, and it depends upon your database structure and you to decide, which approach to pick.
You need to search for the data on two bases, i.e. ingredients and health data
One approach could be:
For the ingredients part, this would do the job:
Including an array of tags in each document of a recipe which would list out the ingredients of the recipe by which you can query (array-contains)
And for the health data part, I'm not quite sure what you mean by filtering based on health but let's say; you are going to search for the recipes based on the calories the user needs in a day. So after calculating the calories required in a day, it would be like:
Including a field of totalCalories in each document of a recipe which would tell the total calories in the recipe by which you can query (whereEqualTo or whereLessThan)
I suggest you read the Firebase documentation for executing the queries to get to know about all the possible ways.
Perform simple and compound queries in Cloud Firestore
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
i'n trying to figure out, what's the best practice for building collections associated with user's data.(In terms of reactive, queries speed, or other.)
For example, what's better?
Meteor.Users.profile: {friends, likes, previous orders, locations, favorites, etc"}.
Or create additional collection to keep this data, for example:
Meteor.UserInfo.user{friends, locations, previous orders, etc").
Thanks.
Use the Users collection to store information about that user that isn't related to other collections. Typically this should be at the top level of the user document, not inside the profile. The only thing I'd expect to see in the profile is profile information (and not, for instance, a list of previous orders).
Things like previous orders shouldn't be there since you can just query the Orders collection to find them. For performance reasons it is sometimes useful to denormalise this data, but this should be an exception, not the rule.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I'm try using phpLDAPadmin to connect openldap server, but when I try to create new user account with Generic: User Account, I get the error :
"Template Value Error
This template uses a selection list for attribute [gidNumber], however the selection list is empty.
You may need to create some dependancy entries in your LDAP server so that this attribute renders with values. Alternatively, you may be able to define the appropriate selection values in the template file."
I'm quite newbie with ldap and I had tried to search error related with gidNumber but don't have result, I don't know how to solve it. However, I can using software LdapAdmin to connect server and add new uid acc, and I using Ubuntu Server 13.04 to install ldap server. Hope someone can help me out with it.
Thanks.
You probably just want to create an end user account by selecting the 'Default' option and selecting the inetOrgPerson object class and click the "Proceed" button. On the next screen, you can complete the attribute template to create your entry.
If you really do want a Posix account, first create a Generic: Posix group. After the group is created, the Group ID field will be populated in the Generic User template.
try to make o (organization), ou (organization unit), g (group) then try to make some user.. GID is Group ID, so when GID is empty the template value is error :)
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm creating a real estate site, where providers can promote their properties. Since it's nice for providers to see some statistics about clicks, views etc. I tought I use Google Analytics to track this stuff.
In blogger, you can enable Google Analytics and show statistics just for your blog. I'm wondering if it is possible to do it similar for the properties, so that property providers can see separated statistics for each of their properties.
Does Google Analytics have such a functionality? Or is Blogger just an exception because it belongs to Google?
Thx!
You have 2 options, at least in my mind:
Allow the user to input their own account number so that they can get data into their account for just their pages. If you do this, you'll need to make sure that you use different namespaces (see: tracker names) in order to allow for this.
Create profiles based off of the URL (if your URLs show what provider the property is for.) This is a lot more limited than option 1 because there is a hard limit to the number of profiles you can have and it requires you to manually add individuals to each profile.
If I were you, I'd go for option 1. Option 2 is a "last resort" option in my books, or if it is for very few providers (e.g. just a handful of friends as providers)