Project: Requirements and a Database

Continuing where we left off yesterday it’s time to define some requirements.

A high level view of what I want to capture on an informational basis:

  • Original URL
  • Shortened URL
  • User
  • # of clicks for short URL
  • IP address of clicker
  • Location of IP of clicker
  • referrer of short url

With that I generated this DB scheme: MySQL InnoDB

I’m considering creating another table and splitting out the IP address and the geolocation from the clicks table. Those items could be duplicated quite a bit if I generate enough traffic. What do you think? Should I? What would I gain other than DB size?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>