Questions tagged [fetching-strategy]
78 questions
0
votes
1 answer
General CoreData Performance
i have a more or less general question about using coredata the most efficient way.
i have attempted two different approaches of managing data that is shown in a view of my project.
Approach 1: when the view gets loaded i perform all coredata…

Sebastian Flückiger
- 5,525
- 8
- 33
- 69
0
votes
1 answer
iPhone: Algorithm for fetching required data and images from server only once
I have implemented an iPhone App that has FanWall in it where users are allowed to put their comments on FanWall screen and other users can comment on their comment or add new comments. It works fine but very slow as every time FanWall screen loads…

Paresh Masani
- 7,474
- 12
- 73
- 139
0
votes
0 answers
Is there any Way to fetch API with Static IP Address
Actually I am trying to make a discord bot Using Clash of Clans API, but the API have keys which are restricted to only whitelisted IP Address(es), and unlike MongoDB it does not support 0.0.0.0 and My IP Address Changes a A lot. Is there any way…

Dark Dare Devil
- 5
- 3
0
votes
3 answers
What is the correct way of loading some data from database in Flutter?
Considering we have a function like following that loads up data from database:
loadData() async {
loadedData = await loadingData();
return loadedData;
}
And we want to use this loadedData inside the same or other class/widget using…

best_of_man
- 643
- 2
- 15
0
votes
0 answers
How to read a MySQL table every 1 -10 seconds within a Flutter app?
I am writing a Flutter app that uses a NodeJS REST API server as it's backend. The NodeJS application also uses MySQL database to store data.
The data inside the MySQL gets updated by another application. What I want to do is to read some specific…

best_of_man
- 643
- 2
- 15
0
votes
1 answer
Efficiently load chat log
/user/:userId
user = {
user_id
username
name
email
pfpsrc
};
/chatlog
{
responce: [
{
message_id
message
message_date
user_id
},
{
message_id
message
…

Maxhu787
- 18
- 5
0
votes
1 answer
Why using QueryClient.prefetchQuery instead of useQuery for caching in react-query?
Why using QueryClient.prefetchQuery instead of useQuery for caching in react-query ?
I don't see any valable use case. If I want to prefetch, I just use useQuery at the load of the app without using returned values and when I will using it another…

Mathis
- 87
- 1
- 7
0
votes
1 answer
Fetching from Firestore URL shows 404 - URL not right?
I am using Next.js to fetch data from my Firestore Database, but I keep getting an error in the console, stating that GET (FirestoreDatabaseURL) 404 (not found).
When I try any other json database such as myfakestore or jsonplaceholder, my code…

nelakay
- 103
- 1
- 11
0
votes
0 answers
Scheduled data fetching from a number of endpoints using Python
We are thinking about creating a dynamic and scheduled data-fetching application from a number of data sources (rest API calls). The considerations are as follows
User shall be able to configure API/webservice endpoints, frequency of fetching, and…

kallada
- 1,829
- 4
- 33
- 64
0
votes
1 answer
How to filter out unique tags and store in an array from object given below using hooks
export const imageTag = [
{
link:
"https://images.pexels.com/photos/70069/pexels-photo-70069.jpeg?cs=srgb&dl=pexels-daniyal-ghanavati-70069.jpg&fm=jpg",
id: 1,
title: "Bird image",
tags: ["nature",…
0
votes
1 answer
How to fetch a message with the ID, without having it in cache
So I programmed a system that saves the ids of certain channels (plus messages) and saves them in a file. After restarting the bot, the IDs will be read and reused. For example, fetching the specific message to edit it, therefore. Unfortunately, the…

Atom Brecher
- 95
- 1
- 1
- 11
0
votes
0 answers
N+1 Problem still exists even though fetch call as lazy Spring Boot, Hibernate
I am new and currently created 2 entities. I have established onetomany - manytoone relationship but when I trying to see the sql queries run by hibernate it makes multiple query for the manytoone relationship. Below is the code snippet I have…
0
votes
1 answer
React Redux - data fetching pattern with deletion of objects
I have a react app that displays a list of data and a detail view when clicking on an entry. I also have a data fetcher that fetches data from my backend every 5 seconds.
In my detail view I have a delete button that will delete the object on the…

phoebus
- 1,280
- 1
- 16
- 36
0
votes
1 answer
How to Get Max value fetching between results?
How to Get Max value fetching between results?
As an example
i want to get max "C" value from results "1-3".
success: true
message: ""
result:
0:
C: 333
1:
C: 332
2:
C: 331.85
3:
C: 331.5
4:
C: 333.75249964
5:
C: …

Eduards Silins
- 3
- 2
0
votes
2 answers
Entity Framework Set PreserveChanges to be default MergeOption
In a ASP.net mvc 2 project is there a way to set the default MergeOption to PreserveChanges for all entity types?
Currently i have a massive sub that sets all entity types mergeOption.
Thanks

MattyD
- 185
- 1
- 3
- 14