Archiv

Archiv für die Kategorie ‘Web Tips’

MySQL: tracking row creation and row change events with timestamps

7. November 2009 richard Keine Kommentare

The case for separate Creation and Change properties

 
 

Sometimes when modeling a database entity – a table – you might wish to automatically keep track of when the tuple – the row – was created. In theory this information is rather technical in nature, being synthetically produced by the coder to aid in housekeeping tasks such as:

 
 

  1. Knowing if you are trying to store the latest version of a row in concurrent write operations. Optimistic concurrency control, in which you always assume you are writing the latest version – unless the current timestamp is newer – is useful here. Actually known as “backward oriented”.
  2. Knowing which of several rows was written to the database first. Usually – if you use an AUTO_INCREMENT integer for your primary key, you can use that to know which row predates another row. If you are using a natural key for your primary key then a column “creation_time” or “created_at” could be useful. Perhaps you want to compare Dubletten and use the creation time to help judge which of the doubles to discard.

  Mehr…

  • Share/Bookmark
KategorienWeb Tips, webdeveloper Tags:

My Firefox Plug-ins

23. October 2009 richard Keine Kommentare

Here is a list of the best Firefox plug-ins for web developers.

Anyway, these are the plug-ins I use.

Category: Web Developer Plug-ins

  Mehr…

  • Share/Bookmark
KategorienWeb Tips, webdeveloper Tags:

Google Chrome Angekündigt

2. September 2008 richard Keine Kommentare

Hallo,

heute wird Google einen eigenen Browser zur Verfügung stellen, namens “Chrome”.
Mehr…

  • Share/Bookmark
KategorienWeb Tips Tags: