prateekbose / sql-editor

Home Page:https://prateekbose-sql-editor.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SQL Editor Mock Application for better interaction with SQL Databases. For Demo only.

The app was made using TypeScript and Next.js.

Performance Optimizations

For the page Optimization, disabling SSR for the Code Editor Component and Lazy Loading the Code Editor Component showed significant improvement as follows. With the optimizations, the loading, blocking and interactive times improved by about 60%.

Measure Without Optimization With Optimization
Time To Interactive 4.7s 2.2s
Speed Index 2.3s 1.3s
Total Blocking Time 2700ms 730ms
Largest Contentful Paint 4.0s 2.1s
Blocking Time due to Editor 1780ms 450ms

Without Optimization

results without optimization

With Optimization

results with optimization

Further possible Optimizations

The Monaco Editor fetches scripts from jsCDN for its usage, these scripts can be served locally which can further improve performance

To run the app locally:

  1. Clone the repository
git clone https://github.com/prateekbose/sql-editor.git
  1. Install dependencies
npm install
# or
yarn
  1. Then run the development server:
npm run dev
# or
yarn dev

About

https://prateekbose-sql-editor.vercel.app


Languages

Language:TypeScript 59.9%Language:CSS 39.7%Language:JavaScript 0.4%