Need help with SeeQR?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

open-source-labs
175 Stars 26 Forks MIT License 626 Commits 0 Opened issues

Description

A database analytic tool that allows a developer to compare the efficiency of different schemas and queries on a granular level to make better informed architectural decisions regarding SQL databases at various scales.

Services available

!
?

Need anything else?

Contributors list

No Data

PRs Welcome Release: 1.0 License: MIT Contributions Welcome Twitter Github stars theSeeQR.io

SeeQR: A database analytic tool that compares the efficiency of different schemas and queries on a granular level to make better informed architectural decisions regarding SQL databases at various scales.

Table of Contents

Beta Phase

SeeQR is still in BETA. Additional features, extensions, and improvements will continue to be introduced. If you encounter any issues with the application, please report them in the issues tab or submit a PR. Thank you for your interest!

Getting Started

To get started on contributing to this project:

  1. Download and install Postgres App and start it before opening up SeeQR.
  2. Fork or clone this repository
  3. Npm install
    1. Run
      npm install
      for application-specific dependencies.
    2. Run global install for:
      'cross-env'
      ,
      'webpack'
      ,
      'webpack-dev-server'
      ,
      'electron'
      , and
      'typescript'
      .
  4. Install Live Sass Compile VSCode extension (settings are configured in the .vscode file in this repo), or set up your preferred Sass compiler
  5. To run application during development
    1. npm run dev
      to launch Electron application window and webpack-dev-server.

Built With

Interface & Features



The whole interface in a nutshell

  • Schema

    • Upon application launch, upload
      .sql
      or
      .tar
      file when prompted by splash page, or hit cancel.
    • The uploaded
      .sql
      or
      .tar
      file becomes the active database.
    • To input new schemas, toggle the “Input Schema” button. Upload a .sql or .tar file or directly input schema code. Remember to provide the schema with a unique label, as it will be assigned to the name property of the newly spun up database connected to the schema.
  • Query input

    • The center panel is where the query input text field is located, utilizing CodeMirror for SQL styling.
    • Users have option to execute a tracked or untracked query — simply check the box and provide a label to identify the query in later comparisons against other queries.
    • Toggle the submit button in the bottom left to send the query to the selected database.



  • Data

    • The data table displays data returned by the inputted query.


  • Input Schema and Tabs

    • New schemas can be uploaded into the application by clicking the "+" button above the main panel in the form of a
      .sql
      or a
      .tar
      file.
    • Users can also make a copy of an existing schema, with or without data included.
    • Newly uploaded schemas are displayed as tabs, which can be activated to run tests against during application session.
  • Generate Dummy Data

    • MacOS users can generate up to 500,000 rows of foreign-key compliant dummy-data
    • Users can generate dummy data to fill in a selected scheama's tables—currently supported data types are:
    • INT
    • SMALLINT
    • BIGINT
    • VARCHAR
    • Dummy data is foreign-key compliant. - Columns with key constraints are dropped and replaced with new primary and foreign-key integer columns
  • History

    • The history table shows the latest queries the user submitted irrespective of the database.
    • The history table also displays the total rows returned by the query and the total query execution time.
  • Compare

    • The comparison table is flexible to the user’s preferences.
    • The user selects which queries they want to compare side by side from the ‘Add Query Data’ drop down.
    • They can add and remove queries as they see fit.
  • Visualized Analytics

    • Upon each query execution, query runtime displays under the "Query Label vs Query Runtime" graph. Graph automatically interpolates as results enumerate.
    • User may toggle on specific query analytics results with the Comparisons panel to compare query performances.
    • Graph will be organized on x-axis by label, and colored by schema.

Application Architecture and Logic

Sandbox Environment
SeeQR streamlines the process of instantiating postgres databases by leveraging Postgres.app to import a copy of your database in postgres on your local machine. This means instances of databases are automatically created every time new schema data is uploaded or inputted via the SeeQR GUI. Electron communicates with the instantiated database’s URIs by taking advantage of the

'pg'
npm package.

Cross-schema Comparisons
One of the key features of SeeQR is to compare the efficiency of executing user-inputted queries against different schemas. This allows customization of table scale, relationship, type, and the queries themselves within the context of each schema. This flexibility affords the user granular adjustments for testing every desired scenario. Please refer to “Interface & Functionality” for more details on execution.

Database:Schema 1:1 Architecture
While it is feasible for a database to house multiple schemas, SeeQR’s default architecture for database:schema relations is 1:1. For every schema inputted, a new database is generated to hold that schema. This architecture serves the application’s central purpose: testing — by enabling the capacity to individually scale data connected to each schema, generating analytics at any user-specified conditions.

Session-based Result Caching
The outcome results from each query, both retrieved data and analytics, are stored in the application’s state, which can be viewed and compared in table and visualizer formats. Note that these results’ persistence is session-based and will be cleared upon quitting the application.

Core Team


Catherine Chiu

Serena Kuo

Frank Norton

Mercer Stronck

Muhammad Trad

Justin Dury-Agri

Casey Escovedo

Sam Frakes

Casey Walker

Chris Akinrinade

James Kolotouros

Jennifer Courtner

Katie Klochan

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.