medikoo / medikoo/dbjs-ms-sql

Optimize database data representation

Open
#1 0 comments 0 reactions 1 assignee View on GitHub

@medikoo is already working on this.

Since Feb 8, 2017.

Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Suggested by @mtuchowski

Currently we store data in one table, where we have many columns of different types destined to store single value. In result in each row most of those columns remain empty (see schema here https://github.com/medikoo/dbjs-ms-sql/blob/master/lib/generate-table.js#L7-L21 ). That's not optimal space wise.

Alternative representation of that data, would be to express different types with different tables.
So at value table we would have OwnerId, Path, Stamp, ValueType, ValueId, and via ValueType we know from which table to retrieve Value (via ValueId)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.