https://github.com/nikhilcodes/leaky-bits
A web-based SQL query runner that allows you to execute set of predefined SQL queries against a mock api. This mainly focuses on being able to render the results of the queries in a way that is easy to read and understand, and do operation on top of existing results.
https://github.com/nikhilcodes/leaky-bits
Last synced: 7 days ago
JSON representation
A web-based SQL query runner that allows you to execute set of predefined SQL queries against a mock api. This mainly focuses on being able to render the results of the queries in a way that is easy to read and understand, and do operation on top of existing results.
- Host: GitHub
- URL: https://github.com/nikhilcodes/leaky-bits
- Owner: NikhilCodes
- Created: 2022-05-27T19:39:05.000Z (about 3 years ago)
- Default Branch: dev
- Last Pushed: 2022-05-30T22:04:24.000Z (about 3 years ago)
- Last Synced: 2025-02-09T22:20:29.179Z (5 months ago)
- Language: TypeScript
- Homepage: leaky-bits.vercel.app
- Size: 514 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Leaky Bits
## Overview
A web-based SQL query runner that allows you to execute set of predefined SQL queries against a mock api.
This mainly focuses on being able to render the results of the queries in a way that is easy to read and understand, and
do operation on top of existing results.## Features
- pagination
- sorting
- filter
- export [csv, xlsx]
- Resizable Table## Toolchain
| For | I used |
|:------------------:|:----------------------------------------------------------:|
| Frontend Framework | [React](https://reactjs.org/) |
| UI Library | [AntDesign](https://ant.design) |
| State Management | [Redux Saga](https://redux-saga.js.org) |
| XLSX Export | [XLSX](https://www.npmjs.com/package/xlsx) |
| Resizable Layout | [react-reflex](https://www.npmjs.com/package/react-reflex) |## Page Load Metrics

## Optimizations and Improvements- Made use of `useCallback` to prevent unnecessary re-renders
- Moved `` component from to `` component, which stopped the re-rendering of the
entire app when paginating or sorting.
- Added resolutions to package.json that helped with performance increase of AntD Table, preventing unnecessary rerender
when
hovering.[67e8a6565e2a4b6aabbb13960653f2709e0a11b5](https://github.com/NikhilCodes/leaky-bits/commit/67e8a6565e2a4b6aabbb13960653f2709e0a11b5)
- Used `React.memo` on Table Control component to prevent unnecessary re-renders.
- Before: 
- After: 
- Applied code-splitting and lazy loading to `` component, which improves page load time.
- Before: 
- After: 