Steps To Follow For SQLite Storage In Ionic 2

In my last blog, I promised to provide a step-by-step guide to implementing phone storage. The main purpose of storing data on the phone (offline support) is to reduce load time and optimize downloads.

In this blog, I am sharing my experience using storage with Ionic 2.

There are different ways of integrating storage with the Ionic 2 app. I was considering two options, 1) use local storage, a collection of key-value pairs within the application or 2) use SQLite database. I chose the SQLite database. The reason is that local storage has a key-value structure, it’s hard to query a large amount of data, plus it has a limitation of 10 MB of data.

There are a few other blogs, but I found them convoluted. So, I tried to simplify the steps. Let’s see the step-by-step procedure.

STEP 1: BASIC INSTALLATION

Install the latest version of Ionic and Cordova by –

STEP 2: START…

Summary Not Applicable

techblog2017's avatarTech Blog

In my last blog I promised to provide step by step guide to implement on phone storage. The main purpose of storing data on phone (offline support) is to reduce load time and optmize the downloads.

In this blog I am sharing my experience on how to use storage with Ionic 2.

There are different ways of integrating storage with Ionic 2 app. I was considering two options, 1) use local-storage which is collection of key-value pairs within application or 2) use SQLite database. I chose SQLite database. The reason being,  local storage has key value structure, its hard to query large amount of data, plus it has limitation of 10 MB data.

There are few other blogs, but I found them little convoluted. So, I tried to simplify steps. Let’s see, step by step procedure.

Step 1: Basic Installation

Install latest version of Ionic and Cordova by –

Step 2: Start…

View original post 550 more words

Why Sidekiq “reliable_fetch’’ Is Not Consistently Being Reliable

Rails development and Sidekiq go hand in hand. One or the other time you must have gone into problem where jobs go missing. Wondering why?
Sahil explains!!

Sahil's avatarLet's make learning fun!

Recently, in one of my projects, I came across a situation wherein I was required to parse a CSV uploaded by the end user. For performance reasons, I choose to create a new Sidekiq worker for each row in my CSV. All these rows (workers) were running in parallel (standard Sidekiq behaviour). I wanted to execute some logic ONLY after all rows (workers) had finished processing. Sidekiq Pro let’s you do this by creating a batch of workers. Sidekiq has a Batch API that provides success and failure callbacks for such scenarios.

Everything was working well in development and staging environment. Until a day when a customer reported that he is not receiving success/failure report for his jobs. I tried to reproduce the scenario described by the user but, couldn’t. Not even for the same customer account. But, then I was able to reproduce it and again I couldn’t.

Confused???…

View original post 529 more words