Update specific field on SOLR index

Solr does not support updating individual fields yet, but there is a JIRA issue about this (almost 3 years old as of this writing). Until this is implemented, you have to update the whole document. UPDATE: as of Solr 4+ this is implemented, here’s the documentation.

Is this a good way to model address information in a relational database?

I actually use this as one of my interview questions. The following is a good place to start: Addresses ——— AddressId (PK) Street1 … (etc) and AddressTypes ———— AddressTypeId AddressTypeName and UserAddresses (substitute “Company”, “Account”, whatever for Users) ————- UserId AddressTypeId AddressId This way, your addresses are totally unaware of how they are being used, … Read more

What’s the correct name for an “association table” (a many-to-many relationship) [closed]

There is no “correct” name, but the academic name would be an “Associative Table” (see See the Wikipedia article Associative Entity). Other common names are (in alphabetical order): Association table Bridge table Cross-reference table Crosswalk Intermediary table Intersection table Join table Junction table Link table Linking table Many-to-many resolver Map table Mapping table Pivot Table … Read more

Why don’t DBMS’s support ASSERTION

There are four levels of constraint: column-level, row-level, table-level and schema-level. A table-level could, for example, involve a target table other than the source table on which it was declared but only gets checked when the source table changes. In theory a schema-level constraint would be checked for every change in every table in the … Read more