Skip to main content


Showing posts from March, 2020

ETL Features of SQL Data Platform

Either Datawarehouse or BigData, ETL or ELT is the major part, or you can say it plays a vital role in Data Transformation Life cycle. ELT-ETL used in any kind of data related operations like, Data migration, Data transformation , Business intelligence, Datawarehouse, Big data and Analytics. ETL is Extract transform and Load whereas ELT is extract load then transform. Both have their own pros and cons but now a days ELT is more popular than ETL. This is why because size of data is growing & growing for transformation. ELT also supporting Data virtualization concept where actual original data will reside on system without any modification and transformation will less. SQL server has reach sets of tools for ETL & ELT .  Here I am sharing some important Differences between ETL and ELT which we should know before jumping on features. SrlNo Dimension ETL ELT 1 Technology Adoption ETL is a well-developed process used for over 20 years ELT is a new technology 2 Co

Postgres New JSON data type Support of Static and Dynamic schemas

Now we can create static and dynamic both kind of schema relational table so a new kind of heterogeneous data structure can be created in Relational tables.  Relational database that is much more concerned with standards compliance and extensible than with giving you freedom over how you store data. It uses both dynamic and static schema and allows you to use it for relational data and normalized form storage. Static Relation data structure in Postgres CREATE TABLE Project (  id serial PRIMARY KEY,  name varchar,  mgr integer,  is_active boolean ); CREATE TABLE Task(  id serial PRIMARY KEY, name varchar, status boolean, project_id integer, CONSTRAINT idx_project_id FOREIGN KEY (project_id) REFERENCES project (id) ); Dynamic Relation data structure in Postgres CREATE TABLE IF NOT EXISTS project ( id serial PRIMARY KEY,  name varchar,  mgr integer,  tasks jsonb , is_active boolean ); Keeping JSON Document inside Postgres Table INSERT INTO project VALUES (1,'Young

Changes in RDBMS after JSON

Hi friend, I am continuing my post over my series article "Is it time to revisit PostgreSQL and MySQL with JSON support"  . Today I am sharing my 4th post which is related to " Changes in RDBMS after JSON " JSON bring changes on various vendors and technologies so new kind of challenges came to introducing this feature in their technology. To cover-up these challenge RDBMS started inclusion of JSON data type in their engine. Sooner or later all major RDBMS vendor (eg PostgreSQL, mySQL and SQL Server) added JSON as a data type to keeping document in relational table.  These are the database version when JASON introduced :- . Technology Postgres mySQL SQL Server Version PostgreSQL 9.3 MySQL 5.7.8 SQL 2016 Now a new heterogeneous database kind of structure started creating with relational engine. Static and dynamic data structure in RDBMS started introducing. Mean Relational Table =Normalization + denormalized (JSON/Array).  JSON data Passing done via stan

3rd day of Lock down in India

It’s 3rd day of Lock down in India . Today I started morning with some tips that will help to working from home during lockdown. Here I am going to share top 10 Tips while working from home due to corona virus pendamic outbreak . Avoid working while lying in a bed or relaxing in a couch/sofa/reclining chair. These comfortable setups will make it difficult to focus on work. Ideally a study table and chair would be conducive to staying focused and maintaining productivity. Maintain a routine, get up at a reasonable time, shower and have breakfast/lunch at the usual times. Also ensure you log off at reasonable times and get sufficient sleep at night. Try and emphasize to your family that work from home times are not holidays and request them to keep interruptions to a minimum. Take a 2-3-minute break from work every 30-45 minutes to just stretch, walk around or do some simple exercises. Setup and maintain regular meetings with your managers and teams. Keep people updated about yo

What are the Impacts JSON bring in technology

This is the 3rd post of my series article " Is it time to revisit PostgreSQL and MySQL with JSON support"   There are following impacts json bring in the technologies. NoSQL Document database became popular, mongodb was among one of lucky database vendor.  Technology found JSON as an alternate to xml for data interchange on platform independent. Technology found a supporting for RDBMS to keeping variety of data specially non-structured data in one environment and module. Data explosion and big data came into the platform. The cost on data keeping has rapidly decreased over the last several years, which has resulted in the rapid expansion of genomic data acquisition.  While new database technologies have become common to manage big data. Schema less architecture given support in fast and rapid application development. Polyglot persistence increases the technology surface area enough that it can become quite difficult to monitor, manage, develop, and operate such a d

Why JSON Came into Picture

After 2005 applications & user requirements started growing rapidly, Hardware and software developed, the advent of Single Page Applications and modern mobile/web apps that we know today needed some kind of data interchange to function seamlessly. To fulfill user requirement technology started shifting into  new language-independent data interchange format that time JSON came into the Picture. JSON gained rapid popularity because it makes transferring data very easy. It’s also lightweight and easy to read and understand. There are few other reasons that JSON make buzzword after 2005. Flexibility for rapid application development requirement APIs (application programming interfaces) Modern Web & Mobile Applications. Need of faster data travelling on various kind of devices. Big Data and variety in data.

Is it time to revisit PostgreSQL and MySQL with JSON support

Hi Friend, This is the time is your most important time in some productivity. Where the world is suffering from Pandemic of Corona disease (Covid-19). Everyone is under restrained in their home like jail. Govt of India told to stay in home for 21 days. So I decided to share my long pending post in a series. One of my favourite articile I wrote one year back, I got chance to share. I will share this as a series. Here are some topics related to my current Article  " Is it time to revisit PostgreSQL and MySQL with JSON support " . JSON stands for JavaScript Object Notation, and was first formalized by Douglas Crockford. JSON is a data format interchange - method of storing and transferring data. Mostly its uses such as data conversion (JSON to SQL) and exporting data from proprietary web apps or mobile apps. XML was a big buzzword in the early 2000’s, JSON become the buzzword in later few years.  Why JSON came into picture. What are the impacts JSON bring in database t

Hybrids Database Architecture with In-memory & Disk

When storing data in main memory, gives performance benefits but it is an expensive method of data storage. An approach to realizing the benefits of in-memory storage while limiting its costs is to store the most frequently accessed data in-memory and the rest on disk. This approach is called hybrid architecture of in-memory with Disk. There are some benefits of using hybrid architecture listed below: Performance (which is enhanced by sorting, storing and retrieving specified data entirely in memory, rather than going to disk). Lower TCO from reduction in hardware investment Cost, because a less costly hard disk can be substituted for more memory. Reduced point of failure using Persistence - All data is stored and managed exclusively in RAM is at risk of being lost upon a process or server failure. So every In-memory database  provide solution as a persistence to disk. This is usually act like hardening transaction log from memory to disk. Different vendor have different mechani

In-Memory database and In-Memory engine.

Now-a-days almost every relational or non-relational database gives in-memory capability. Traditional database vendor gives this capability using add-on in-memory engine and some are also specialized vendors. MySQL have in-memory table engine,  SQL server have in-Memory OLTP engine,  SAP has HANA,  Oracle have TimesTen,   Mongodb have separate in-memory services.  These all are version and edition dependent. To use this we need extra licensing cost. Apart from that there are some popular specialized in-memory database vendor like  Redis,  Aerospike,  VoltDB and  Arangodb.  Thanks for reading Plz dont forget to like Facebook Page..

Why In-Memory Database

An in-memory database (IMDB) is a database whose data is stored in main memory to get faster response times. Currently there are 3 most popular storage systems for data/database, RAM, SSD and HDD. RAM performs random reads/writes at 100 MB per second. Sequential reads/writes are even faster 1 GB per second and higher. An SSD is slower than RAM. Random access time is a fraction of a millisecond (1e-5 seconds): we can randomly read around 10,000 blocks per second. Random access time is 10 milliseconds (1e-3 seconds), which is 100 times slower than an SSD. If we talk about price on average, each storage type is ten times more expensive than the previous one. An HDD is the cheapest storage type, an SSD is ten times more expensive than an HDD, and RAM is ten times more expensive than an SSD. So If we need access time of 1 ms or less, choice is RAM. Different database vendor have different size limits. There some popular use cases where In-memory database is being use. 1. Sessi

Why Oracel or SQL DBA like Postgres than mysql

We can create database server architecture similar to Oracle/SQL as well as mysql and also feature of mongodb. Postgres Supports all sorts of performance optimization that we used in Oracle or SQL Server. I think in that's case where MySQL is lacking. Supports materialized views and temporary tables. Supports temporary tables but does not support materialized views. It implements the SQL standard very well. It includes support for "advanced" SQL stuff like window functions or common table expressions (now supported in MySQL 8.0) . Postgres is very innovative in the matter of how plpgsql interacts with SQL. It supports lots of advanced data types, such as (multi-dimensional) arrays, user-defined types, etc. MySQL is partially compliant on some of the versions (e.g does not support CHECK constraints). PostgreSQL is widely used in large systems where read and write speeds are crucial and data needs to validated. In addition, it supports a variety of performance op