Over a million developers have joined DZone.

SQL & Python: Analyzing 8 Years of Last.fm Data

· Java Zone

Microservices! They are everywhere, or at least, the term is. When should you use a microservice architecture? What factors should be considered when making that decision? Do the benefits outweigh the costs? Why is everyone so excited about them, anyway?  Brought to you in partnership with IBM.

Hey, MongoDB isn't the only thing you can use to crunch huge volumes of data (and neither is PostgreSQL, for that matter). In this recent post, Matthew Lewis has taken to his Last.fm data (eight years of it) with a Python script and a SQLite database, and it looks like an enjoyable activity for anybody interested in simultaneously playing with a database and reliving the musical horrors of his or her youth. Lewis, for example, made a few notable discoveries:

...I ran some queries to search for songs I played obsessively after I discovered them, and I found several of my music-listening phases, such as:

  • that period during which I listened exclusively to "Weird Al" Yankovic,
  • the landmark date in 2006 when I listened to Daft Punk's Discovery for the first time, and
  • that time I saw Wicked with my high school band and listened to the soundtrack for a week straight.

He also points to all the tools he used to do this, including the Python work, and provides his own SQLite database of results for download. Check out the full post for more details on how to use Python, SQLite, and Last.fm to learn your own embarassing secrets!

Discover how the Watson team is further developing SDKs in Java, Node.js, Python, iOS, and Android to access these services and make programming easy. Brought to you in partnership with IBM.

Topics:

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}