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-data
Filter by
Sorted by
Tagged with
0 votes
0 answers
85 views

PathNotFoundException: Cannot open file, OS Error: No such file or directory, errno = 2

I am using this function for read and write the local json, to change data dynamically in flutter Future getMetaData(FirebaseRemoteConfig remoteConfig) async { Map<String, dynamic> newMetaData = ...
Chintala Santhosh's user avatar
0 votes
0 answers
28 views

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 ...
Kelsey Hannan's user avatar
0 votes
2 answers
403 views

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 ...
Faab01's user avatar
  • 1
0 votes
1 answer
413 views

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 ...
Dois's user avatar
  • 733
1 vote
0 answers
451 views

Create a Table with Rows in Android Room

I am making an Android app that has a database. I am able to create all the tables I need but need to populate some tables with static data. I tried doing this with a migration but cannot get the code ...
Daniel Ortiz's user avatar
3 votes
2 answers
855 views

Assembly function address table and data under the function or in data section

I have a question about putting data (address table or other data) in the .text section under its function or put in .data section? For example, I have a function like this : extern int i0(); extern ...
HelloMachine's user avatar
2 votes
1 answer
61 views

Static const data member of a class as a size of a member array of the same class?

I am making List class through fixed sized arrays. I want to declare ARRAY_SIZE within the class as a static const data member therefore my class is self contained and also I can use it as a size of ...
SANG's user avatar
  • 31
2 votes
1 answer
161 views

How to insert static data in event sourcing?

We’re migrating from a monolithic application to microservice and we use event sourcing and CQRS. Each service has its own read models. When a service needs to insert data, it fires an event. The ...
Sheida's user avatar
  • 21
0 votes
0 answers
109 views

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 ...
atom19-i's user avatar
0 votes
1 answer
355 views

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": "[email protected]", "comment": "Lorem ipsum dolor sit amet, ...
Jayant Kaushik's user avatar
0 votes
1 answer
235 views

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 ...
Aaron34's user avatar
5 votes
2 answers
5k views

Ways to store large set of static data in frontend

I need to display some data (mostly text) in my react-app. The data is more like guidelines and will not be changed often. So storing it to DB doesn't make sense to me here. What are the ways to store ...
Vishnu's user avatar
  • 1,691
1 vote
1 answer
351 views

How to search through static data across multiple Angular components?

I was wondering how, if at all possible, I could set up a search that would work across multiple components in Angular. All of the components that would be targeted are hardcoded. I've already tried ...
Display Name's user avatar
0 votes
1 answer
178 views

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 ...
NewToAmadeus's user avatar
1 vote
1 answer
331 views

Static data member: "const declaration / constexpr definition" does it work?

The following piece of code tries to provide a constexpr static data member of type X that belongs to the type X itself. In the standard library (C++20), there seem to be such examples with (at least) ...
Ankur deDev's user avatar
2 votes
0 answers
183 views

Concatenate a static dataframe with Structured streaming dataframe

How could I union or concatenate a static dataframe with only one row to a stream dataframe with around 500 rows in spark. it is somehow put a stamp or mark (add a row to each table) for each ...
Supernova85's user avatar
0 votes
1 answer
130 views

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 ...
Entoni Maslakov's user avatar
2 votes
1 answer
206 views

Implementation of static data member at c++ [closed]

I'm working on multi-threading function which defined as a member function and using a common variable of the object. I'm thinking about two approaches : 1. global variable static int var = 0; ...
Bizzu's user avatar
  • 449
0 votes
1 answer
145 views

Data type of attributes in igraph, python

In order to speed up my code, I am using Cython. I was wondering whether it is possible to fix the type of attributes for a Graph object in igraph?
mmg's user avatar
  • 11
2 votes
1 answer
927 views

Failed to load local data with Angular 6 and ASP.NET MVC5

For security reason, we have to stick to ASP.NET MVC5. That's why we have to build the frontend Angular app and use BundleConfig to package and grab everything. For the view, we established a view ...
Terence's user avatar
  • 652
1 vote
0 answers
621 views

How to maintain static reference data in Rest API

I've been developing REST API using springboot and came across situation like API needs to maintain some reference data table eg : consumer will request with a particular key and that key will be ...
Charaka Wijesinghe's user avatar
1 vote
0 answers
166 views

Why does C++ allow for the declaration of an incomplete type inside its own definition?

[class.static.data]/2: The declaration of a non-inline static data member in its class definition is not a definition and may be of an incomplete type other than cv void. ... That means, this ...
João Afonso's user avatar
  • 1,934
1 vote
1 answer
375 views

Mobile app - Store and version relatively static json files on the backend

I have a mobile app that reads data from a few json files. The app does not modify the data in any way. The data is mostly static but there might be changes (addition/deletion/updates) every few days (...
tbag's user avatar
  • 1,278
3 votes
2 answers
1k views

Android: using Firebase to store static data

I'm developing an android application that will allow users to find informations about the streets in my city. They will be able to register and save some streets as "favourites". My question is, how ...
Edoardo Pessina's user avatar
1 vote
1 answer
162 views

Database schema organization for static lookup data

I am building an web application, and the "static" data like Gender, Profession , etc will be presented in combo box.I will store the data in database table. All this "static" data will be stored in ...
tt0686's user avatar
  • 1,799
2 votes
2 answers
399 views

Using static data in Elm applications: parse JSON or use Elm values?

I am about to start development on an Elm application that is mostly about displaying a data set. The data will be prepared in several JSON files (including different languages for text), specified by ...
Raphael's user avatar
  • 10.2k
4 votes
3 answers
400 views

Design pattern for accessing static data

I have a scenario where I have a set of credentials for each environment e.g. for dev env username1/pwd1, for qa env username2/pwd2, for staging username3/pwd3 and so on. Now I want to create a class ...
MaxRecursion's user avatar
  • 4,843
1 vote
2 answers
248 views

Should you copy static data members in a copy constructor or assignment operator?

In C++ should you copy static data members in a copy constructor or assignment operator? Why or why not?
Tika Gurung's user avatar
0 votes
1 answer
240 views

Storing static data in JSON file vs PHP file itself?

I'm writing a web service in PHP using the slim framework. Any request made to any endpoint will only be allowed if (a) the request is coming from a list of IPs (b) the HTTP request header contains a ...
AyushISM's user avatar
  • 381
1 vote
1 answer
655 views

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" ...
tempx's user avatar
  • 418
3 votes
1 answer
191 views

What is the best way to load static objects in an iOS app?

I have a list of about 100 address. I want to use the CLGeocoder Class and the geocodeAddressDictionary or geocodeAddressString methods to get a list of CLPlacemarks for each address. I don't want ...
user2662692's user avatar
4 votes
1 answer
150 views

iOS virtual memory: does iOS automatically page out static const arrays when memory is scarce?

If you have a giant static const array (say, several tens of megabytes) that never changes and is only used at startup, is it automatically paged out when memory is scarce? That is, does iOS know that ...
Todd Lehman's user avatar
  • 2,920
0 votes
1 answer
214 views

Creating an android Application containing only static data

I am going to work on an android application. The basic flow should be like : 1. Main Activity **-cat1** -subcategory 1 -subcategory 2 **-cat2** -subcategory 1 -subcategory 2 **-cat3** -...
user avatar
4 votes
2 answers
2k views

Where should I store static data in a web application

I have a general question about writing web applications. Many times I have static data, say a list of countries, or a list of options for radio buttons or a drop down menu. I don't like hard coding ...
user2662692's user avatar
0 votes
1 answer
497 views

Static data or Application Object or Cache in MVC apps

I am building a website using MVC4. I have a set of objects, which are almost static by nature. Should I opt for Application object or Static data or Cache?
Krishna Sarma's user avatar
0 votes
1 answer
3k views

Extjs 5.0 grid paging with static data

Pagination is not working for my grid. Could somebody please let me know why. Am making use of static data which is got by reading the xml from controller. I want to display 10 records per page. ...
ASR's user avatar
  • 431
0 votes
1 answer
87 views

Storing static table data as a collection in myBatis

I am using myBatis for my ORM frameowrk.I need to load the data of a static table(for eg country table) into memory and be able to use whenever needed by other business objects.Is there any effective ...
Krithika Vittal's user avatar
0 votes
2 answers
73 views

Other methods of providing static content

Are there any other methods to adding static data to a textview? Example: I currently have an activity friendship.xml and there would be a textview box, the content/text of this is currently defined ...
Frikkie's user avatar
0 votes
3 answers
218 views

Need to store static data in a yml file for syncing with the DB

I have a set of shipping codes that I want to be able to store in our database. I will be adding to this list in the future, so ideally I'd like to have them in a YML fie that I can just add to. I ...
tesserakt's user avatar
  • 3,271
4 votes
4 answers
2k views

What is the opposite of "Reference Data"?

I'm looking for a term that means "non-reference" data i.e. any data in a database that strictly ISN'T reference data. Master Data /\ / \ / \ / \ ...
Steve Chambers's user avatar
0 votes
2 answers
1k views

How can I get a static SQLite database to show up in my listView

I'll start off by listing the code i have thus far... This is my main Activity class: public class SQLiteDatabaseMain extends Activity { ListView list; DatabaseHelper helper; ...
MattF2288's user avatar
6 votes
3 answers
34k views

How to sort an ArrayCollection in Flex

I want to sort an Arraycollection by fieldName as ascending. Here's my code and I want to know whether it's right. Do you have any suggestions? public static function arrayCollectionSort(ar:...
Aravinth's user avatar
  • 363
0 votes
1 answer
112 views

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 ...
dannyyy's user avatar
  • 1,784
0 votes
2 answers
258 views

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 ...
badboy11's user avatar
  • 541
0 votes
1 answer
248 views

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"...
Lukas's user avatar
  • 409
3 votes
2 answers
186 views

is this a good idea with static data

So i have an ever growing system in PHP where i have a static class that takes care of the database connection stuff. <?php class Database { // ... connection upon construction and ...
ThePrimeagen's user avatar
  • 4,522
0 votes
4 answers
5k views

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"; ...
nitin_cherian's user avatar
0 votes
1 answer
2k views

android using sqlite as a static data [duplicate]

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 ...
zmeda's user avatar
  • 2,909
3 votes
4 answers
3k views

Generate seed data in Visual Studio 2010 Database project

I have a database and a database project in Visual studio 2010. I inferred the schema in the database project successfully but I also need to import somehow the data in a few tables (Country, State, ...
Andrei Rînea's user avatar
6 votes
1 answer
2k views

Design of snapshots in a transactional database along with versioning of reference data

Disclaimer: I have read everything that I can read on the topic of snapshots and versioning on both stack overflow and on internet. My requirement is not version tracking for audit trail or the ...
Siraj Samsudeen's user avatar