New answers tagged

1

It's OK to have sparse documents in a document database, in fact it's probably one of the better reasons to use one. Let the indexer deal with it. If you later discover your access patterns have changed, you can provision an indexing policy for specific properties You'd want the deviceIdentifier as an unique key so the database can help enforce it's ...


1

I guess the most frequently used language for describing an ER model is SQL, specificially the DDL part of SQL. If you want to create diagrams from this kind of description, you either need to implement some kind of SQL parser, or alternatively run the DDLs against some empty DB instance and reverse engineer from there- Of course, this is only technology-...


3

An entity-relationship model represent some kind of graph (the mathematical structure, not the visual presentation): there are nodes and edges that join pairs of nodes. Both nodes and edges have properties that describe the entity or the association. So any language able to describe a graph could be used to express an ER model. For example: XML. The ...


1

It's OK to pass things that, depending on state, might not be used. Consider for a moment a multiplication method: x.multiply(y); This method returns x * y where x is some object that was constructed with an int that it now holds. Which means this will pass: assert(new X(2).multiply(2) == 4); So far this all seems reasonable but what happens when it ...


2

If understand your question correctly, you have a list that needs to contain two types of objects which perform work. However, the methods for these two types differ in their arguments; one requires a single input (ul_data) while the other can do the work without any inputs at all (to wit, because it obtains the data from somewhere else). In other words, ...


1

On the front end, most database have a snapshot isolation level where you can run multiple commands against the same database state. What this means is all transactions which completed before yours remain available and all transactions begun after yours remain unavailable. When running multiple exports under such a transaction, referential integrity should ...


1

First, I like the @DocBrown overall approach. However, for something possibly simpler, if the data looks something like [ { point 1 data { possible with nested stuff BUT without any "some field name{" : " some } data" that include brackets to screw up simple counting of brackets } }, ... { point 1,300,000 } ...


5

Since your JSON file never changes, it is an ideal candidate for preprocessing it once, extracting the marker positions, and store them in a file format which is optimized for your specific purpose. You have to solve two different problems here: Create individual sets of markers of different densities for different zoom levels ("level of details"). That ...


1

Fortran and Python are already great tools for number crunching, and, if you know you don't want to show all the markers at once, you will have some "filter" rules based on your inputs, right? They have probably streams or buffers that can allow you to read a file by not loading it into memory all at once. How about you do some crude pre-processing in a way ...


Top 50 recent answers are included