New answers tagged


Each system maintains a changelog of its database. We are planning to implement it with MongoDB. You can use an eventstore. There any update to data will create a new event in the store. When a system initializes a synchronization process, it retrieves all made changes from log. If the system is B, the changes retrieved depend of the destination....


Is there a long term disadvantage to having the seed data in classes in the code, and if that's the best place to put it I would argue that, on the contrary, this is the best place to have this kind of initialization. Since your code depends directly on this data, its shape and contents, this initialization being directly tied to your code is actually the ...


One interface I saw had options to Retire (soft-delete) or Delete (actually remove) data from the database.


For a single simple method, using a stopwatch can work well. For larger, more intricate code, though, what you want is a profiler, an external tool that attaches to your program as a debugger, lets you run it, and monitors how long the code that you're executing takes and where the time is being spent. When you're finished, it gives you a statistical ...


If the three possible states have some inherent meaning, use something suitable for that inherent meaning. For example, it the possible states are 1, 2 or 3, or if they are 100, 200 and 300, use an integer. If the possible states are yes, no, or unknown, you might use an optional boolean or a pointer to a boolean object, with the possibility of having no ...


If you are using Java, you can use a Boolean object: since it is an object and contains a boolean, it can hold the values true, false, and null. I am not sure if this is the best way though.


It's hard to answer this with the information provided. For instance, you say that you're "stringifying" the data, but you aren't saying what method you're using. Is there a library you're using? Is the string JSON, XML, or some other structured data? I'll assume that you're using some type of structured data (for simplicity, let's say JSON using GSON or ...


5Mb seems like a trivial amount of data these days. So I wouldn't worry about pulling that out on demand, deserialising and manipulating that. Performance shouldn't be a problem given your quantities of data If there are no projected format changes for this data, I would stick to this approach.


Put the data in a data base. Write a function which pulls all the data from the database and populates the arrays. Pass the populated arrays to the unchanged calc function Write a function to write a database using the resultant arrays from the calc function.

Top 50 recent answers are included