![]() or B) Store data in DB using “caching” like I did for the players list. It’s better to A) Directly access data to API (but this mean each user will create call to API, so if you have 1000 user on your app at the same time, this is 1000 API Call every minutes (if you refresh it every minutes). So if you process each game and create a game item in your DB for each of them, and you want to refresh it every minutes, it will take a lot of app capacity. ![]() But game live score? It can be updated every seconds. Because this is not the kind of data that will be updated often. This is why I need to use filtered by (with the TeamAPI from PLayer call)įor you question about performance, this depend how often you need to refresh data.įor example : teams: I would not hesitate to create a WF that will create an item for each teams in my DB and using team instead of storing API Data. In my demo, I’m listing the Player Team for each period using an API Call to Teams.json. NBA Players field in NBA players contain Get PLayers League standars data. This is why the type of content of RG is not set on a Bubble thing (NBA Player) but on API Thing (Get Players league standards). What I want, is this json, not really the NBA Players DB. And this is the item that contain the JSON of the api call. But still, 1 huge 1000 element entry isn’t the same a 1000 tiny 1 element entry ?īecause when you do a search for, this return a list. I would imagine that searching between 1 entry is quicker than 1000. I also don’t get why having a huge database of player with one entry per player is less efficient than having a huge one entry database with all the player in it. I would have thought that having data stored in the app would be more efficient than calling for an API all the time since the data is already 'in-house". You said that adding each entry of each API call within a dedicated DB would dramatically damage the app performances. That is the kind of stuff this API requires to do, since almost every call is connection to another call, it’s going to be a common use case. How to take the teamID value from the player call, look for the matching teamID in the team call and then return the fullName value from the team call to be displayed ? And then, I assume that when you need to filter data from an API using another API’s value, the formula applied for a text would be quite complicated.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |