When to build a separate reporting database?

In general, the more mission critical the transactional app and the more sophisticated the reporting requirements, the more splitting makes sense. When transaction performance is critical. When it’s hard to get a maintenance window on the transactional app. If reporting needs to correlate results not only from this app, but from other application silos. If … Read more

What are the [dis]advantages of using a key/value table over nullable columns or separate tables? [duplicate]

Note This subject is being discussed, and this thread is being referenced in other threads, therefore I have given it a reasonable treatment, please bear with me. My intention is to provide understanding, so that you can make informed decisions, rather than simplistic ones based merely on labels. If you find it intense, read it … Read more

Making a DateTime field in a database automatic?

You need to set the “default value” for the date field to getdate(). Any records inserted into the table will automatically have the insertion date as their value for this field. The location of the “default value” property is dependent on the version of SQL Server Express you are running, but it should be visible … Read more

What mysql database tables and relationships would support a Q&A survey with conditional questions? [closed]

Survey Database Design Last Update: 5/3/2015 Diagram and SQL files now available at https://github.com/durrantm/survey If you use this (top) answer or any element, please add feedback on improvements !!! This is a real classic, done by thousands. They always seems ‘fairly simple’ to start with but to be good it’s actually pretty complex. To do … Read more

Versioning Database Persisted Objects, How would you? [closed]

Think carefully about the requirements for revisions. Once your code-base has pervasive history tracking built into the operational system it will get very complex. Insurance underwriting systems are particularly bad for this, with schemas often running in excess of 1000 tables. Queries also tend to be quite complex and this can lead to performance issues. … Read more

What is a tablespace and why is it used?

A data file that can hold data for one or more InnoDB tables and associated indexes. There are many types of tablespaces based on the configuration w.r.t the information clubbing per table. These are, a. System tablespace b. File per tablespace c. General tablespace System tablespace contains, InnoDB data dictionary. DoubleWrite Buffer. Change buffer Undo … Read more