Questions tagged [fetching-strategy]

78 questions
1
vote
2 answers

Fetching image from Supabase storage through database table returns undefined URL

I am building an app in Next.js, which fetches dynamic data from a Supabase table. The table (called product) has several data points (title, description, image). My table in Supabase looks like this: My problem is that both the description and the…
nelakay
  • 103
  • 1
  • 11
1
vote
1 answer

Fetching API data, nested in two arrays and displaying it with React

I am trying to fetch data that is nested in two unnamed arrays API Endpoint. import React, { useState, useEffect } from 'react'; import axios from 'axios'; const API_URL =…
RomanV
  • 15
  • 6
1
vote
1 answer

Facebook Marketing API, Get Insights Fields and Campaign Object Fields

I was wondering if anyone found a way to get insight fields like reach, spend, etc with the combination of campaign object fields like daily_budget, lifetime_budget, etc + date_preset=this_month&time_increment=1? Graph API Explorer…
1
vote
1 answer

Fetching with if statements - Conditional Fetching Problems

The app I am working on allows users to connect social media integrations facebook, instagram, and youtube, into my app. Once connected it pulls all of their posts from those services and puts it into one place - my app. For example... the user can…
Nick McLean
  • 601
  • 1
  • 9
  • 23
1
vote
1 answer

Can I change the Fetch Mode in a Resultset from a DatabaseMetaData query?

I'm inspecting a Database using an DatabaseMetaData instance. I get all the information of the tables in the DB and I iterate all the Resultset without anyproblem. At the end of the iteration, I want to return to the begin of the ResultSet, so I…
jomaora
  • 1,656
  • 3
  • 17
  • 26
1
vote
0 answers

Python - Flask API service - Loop through API data sources, cache, and give rapid feedback on call

I'm trying to develop an API service that after collecting data continuously from different sources, elaborate that data, and keep that information ready from being requested from another service. I'm using Flask and it's working on top of a single…
entalpia
  • 101
  • 1
  • 11
1
vote
1 answer

Fetching a total category tree (a list of all categories and their sub-categories) v.s fetching each branch as it is needed?

I'm not sure if my terminology is completely correct, but my question revolves around the goal of displaying lists of categories,sub-categories, and sub-sub categories. The complete number of categories, sub-categories, and sub-sub categories is…
connected_user
  • 814
  • 1
  • 9
  • 25
1
vote
1 answer

HIbernate fetch join issuing additional sql statements

Consider the following Parent class that has two ManyToOne references. @Entity @Table(name = "PARENT") public class Parent { private static final long serialVersionUID = 3730163805206219313L; @Id @SequenceGenerator(name = "SEQ#PARENT",…
Sasi
  • 757
  • 5
  • 16
1
vote
0 answers

How to eager fetch multi level objects with NHibernate

I have the following Entity's: public class Parent { public string Id { get; set; } public Ilist Children { get; set; } } public class Child { public string Id { get; set; } public Ilist Parents { get; set; } …
1
vote
2 answers

Join fetching @ManyToOne nested inside @OneToMany

I have created the following entities to manage a persistent shopping cart: ShoppingCart.java: @Entity public class ShoppingCart { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @PrivateOwned …
maurizeio
  • 266
  • 2
  • 11
1
vote
0 answers

NamedNativeQuery in Hibernate generates many select statements? How get referenced entities in a batch-way?

I thought I understood hibernate's fetching strategies, but it seems I was wrong. So, I have an namedNativeQuery: @NamedNativeQueries({ @NamedNativeQuery( name = "getTest", resultClass = ArticleOnDate.class, query = "SELECT `a`.`id`…
Roman B
  • 81
  • 7
1
vote
1 answer

Best way to manage resources in a game

Recently I have started game development and i am in process of make an MMORTS game (Massively Multiplayer Online Real Time Strategy) but i am stuck at one point and need suggestion how to manage it. Below is the case:- General Game Information All…
1
vote
1 answer

how to Use fetch="join" in hbm file?

in this question, i want to get the collection retrieved with a single select query by using fetch="join". i made the following change on user.hbm file.
jayendra bhatt
  • 1,337
  • 2
  • 19
  • 41
1
vote
4 answers

NHibernate: How to fetch an object without its child collections?

My objects of type Object1 contain List Children1 property. I would love to get these objects without children. Seems like detachedCriteria.SetFetchMode ("Children1", FetchMode.Lazy) should be the thing, but apparently it's not :( I tried getting…
wysek
  • 83
  • 6
1
vote
0 answers

Algorithm of most relevant wall posts

I am about to develop a wall which fetches a lot of wall posts from different users. I have a global table called "edu_posts" containing wall posts, and comments to these. I wish to create some kind of system to focus on bringing the most relevant…
FooBar
  • 5,752
  • 10
  • 44
  • 93