Questions tagged [static-data]

Static or reference data is information encoded by a programmer which generally does not change at runtime. Contrast to transactional or operational data which is generated or modified by user activity or other events at runtime. The term "static data" typically refers to data in a database context, though not necessarily so.

Static or reference data is information encoded by a programmer which generally does not change at runtime. Contrast to transactional or operational data which is generated or modified by user activity or other events at runtime.

The term "static data" typically refers to data in a database context, though not necessarily so.

57 questions
1
vote
1 answer

Entity Framework static data (lookup table) implementation

Currently I am developing a C# project using Entity Framework with code-first approach. I am stuck with the use of static (reference) data. Let we assume that there are the "movie" and "movie genre" entities as: public class Movie { [Key] …
tempx
  • 408
  • 2
  • 4
  • 15
0
votes
1 answer

How to persist reference data

After the every first start of my application I download all the necessary reference data (text file (csv format) with size of 1MB). This data contains about 30000 lines and each line is a data entry with name, latitude, longitude and height. Whats…
dannyyy
  • 1,784
  • 2
  • 19
  • 43
0
votes
2 answers

C++ Logic Bug: Trying to Generate Unique ObjectIDs for all Instances Created, Counter Registering Incorrectly

I am working on a project that must allow all instances created to have a unique objID. All classes inherit from one base class that has a static variable that increments whenever any of the concrete classes constructor(s) are called. The counter…
badboy11
  • 541
  • 1
  • 6
  • 19
0
votes
1 answer

Integrate dynamic feed into database results with pagination

I have two main data sources I need to do a mashup with in php. The first one is an SQL database and the other is a feed. Both sources contain similar items that need to be sorted by "name" or "weight". There are more than 1k items in each of the…
Lukas
  • 409
  • 1
  • 5
  • 15
0
votes
4 answers

Initialize a static non-const data member of a class

I have written the following sample code : class MyClass { static int a; public: MyClass ( int i ) : a ( i ) { cout << " \n ctor called. a is : "<< a << " \n"; } }; int MyClass::a = 1; int main( ) { MyClass…
nitin_cherian
  • 6,405
  • 21
  • 76
  • 127
0
votes
0 answers

How to efficiently query and return static data within a Ruby gem?

I have a ruby gem that calls a Natural Language Processing API to manipulate text. In the gem we process the API response to return the text back in a formatted way. However, there are cases where we want the ability to just pattern match the text…
Kelsey Hannan
  • 2,857
  • 2
  • 30
  • 46
0
votes
2 answers

How to generate the list of route segment parameters for every pokemon using generateStaticParams in Next.js 13?

I am trying to use Nextjs 13's generateStaticParams to render static data into my web page. How do I generate the list of routes like /pokemon/[pokemonName] for every pokemon name using the generateStaticParams without providing hard-coded pokemon…
Faab01
  • 1
  • 1
0
votes
0 answers

Distributing static package data as separate Python package?

My Python + Django application has quite a lot of CSS/JS dependencies, which change quite seldom. I was thinking about separating the two. My package with the dependencies takes 2x more space than without them (with deps 8.7 MB, without deps about…
dotz
  • 884
  • 1
  • 8
  • 17
0
votes
1 answer

How do you manage static data for microservices?

For a database-per-service architecture, how do you guys manage your static data for each microservice? I want to make it easy for a new developer to jump in and get everything up and running easily on their local machine. I'm thinking of checking…
Dois
  • 594
  • 1
  • 10
  • 25
0
votes
0 answers

React.js button and event handling for lists having cards

overview : creating 3 different lists with cards ; each list has a specific button type(depending upon list title) and say,each card in list X has a specific button X associated with it. what i have created so far folder structure my question is…
atom19-i
  • 1
  • 1
0
votes
1 answer

How to read a static json and populate a comment section in Angular?

I have created a json file in assets folder. Below is the json [ { "userEmail": "IronMan@in.com", "comment": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent placerat metus at mauris sagittis interdum…
Jayant Kaushik
  • 213
  • 4
  • 21
0
votes
1 answer

How to break up expression into distinct sub-expressions?

I got this error in Swift "The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions" Here is the code that is throwing the error. let obj =…
Aaron34
  • 7
  • 4
0
votes
1 answer

android using sqlite as a static data

Possible Duplicate: Android pre-filled DB I want to use SQLite as a static data. By that I mean to preload it with data before application first start. This data is static = no inserts, deletes or updates. I just want to use full power of sql…
zmeda
  • 2,909
  • 9
  • 36
  • 56
0
votes
1 answer

Static data query - self service Amadeus API in production environment

I am currently developing a web app using self-service Amadeus API in a production environment, I have questions related to the static data, kindly reply. Questions: 1. Is there any static data available related to flights schedule or any other…
0
votes
1 answer

Sabre static data

I'm working with hotel APIs and faced a problem that I don't know what data I should send. I mean i don't know hotel IDs, countries and cities supported by Sabre. I found a Multi-Airport City Lookup and Countries Lookup APIs. But they return only…