Skip to content

Instantly share code, notes, and snippets.

@karuppiah7890
Last active May 20, 2022 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karuppiah7890/57056cd71d171a8041c304e2fc0bf78f to your computer and use it in GitHub Desktop.
Save karuppiah7890/57056cd71d171a8041c304e2fc0bf78f to your computer and use it in GitHub Desktop.
Timescale DB benchmarking tool

Code

  • Create project in GitHub and local
  • Add basic README
  • Create GitHub Project
  • Enable Golang VSCode Extension for the project in local
  • Initialize Golang Module with go mod init
  • Add a basic main.go for the CLI tool
  • Setup Timescale DB in local using docker or docker-compose
  • Create user stories / story cards as GitHub issues for different tasks / work
  • Add Makefile to ease dev tasks like running tests, building tool etc
  • Add .gitignore to ignore distribution directory containing tool binary

Library usage

Learning

  • Learn about time series data and databases and the different functions that people
  • Learn how Timescale DB works on top of Postgres
  • Learn what hypertables are

Ideas

  • Use Timescale DB to store benchmarking data to get min, max, average query time etc
  • Use CodeTour VSCode Extension to do a code walkthrough once the codebase is ready and good? 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment