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
2
votes
1 answer

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 services which use that data, will update their read…
Sheida
  • 21
  • 3
2
votes
0 answers

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 streaming dataframe. Adding more, my streaming data has…
2
votes
1 answer

Implementation of static data member at c++

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; class Object { void specialOp { var++; } } 2.…
Bizzu
  • 449
  • 3
  • 17
2
votes
1 answer

Using Java in Google App Engine, what's the best way to store and access large, static data?

I have my most of my apps "dynamic" data stored in the datastore. However, I also have a large collection of static data that would only change with new builds of the app. A series of flat files seems like it might be simpler than managing it in…
2
votes
1 answer

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 placeholder for our Angular App. Yes, I agree that…
Terence
  • 652
  • 11
  • 34
2
votes
2 answers

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 JSON schemas. This data base will not go away,…
Raphael
  • 9,779
  • 5
  • 63
  • 94
1
vote
0 answers

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 to run as I expect. This data is needed for that…
1
vote
1 answer

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 looking around on google and various other…
Display Name
  • 122
  • 2
  • 21
1
vote
1 answer

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) the class 'std::strong_ordering' and its few…
Ankur deDev
  • 505
  • 2
  • 9
1
vote
1 answer

Deletion / invalidation approaches for reference data

Based on the discussion I found here: Database: To delete or not to delete records, I want to focus on reference data in particular, add a few thoughts on that, and ask for your preferred approach in general, or based on which criteria you make the…
bonifaz
  • 588
  • 3
  • 16
1
vote
0 answers

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 interpreted inside the API by looking up reference…
1
vote
0 answers

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 is a valid code: #include struct S { …
João Afonso
  • 1,934
  • 13
  • 19
1
vote
1 answer

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 (5-6 days). These files are around 300-400KB in…
tbag
  • 1,268
  • 2
  • 16
  • 34
1
vote
1 answer

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 table with the following structure static_gender…
tt0686
  • 1,771
  • 6
  • 31
  • 60
1
vote
2 answers

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?