Vikram
Vikram

Reputation: 227

What client-side database should I use with IBM Worklight?

I am new to working with Worklight, and I'm trying to find out what database I can use on the client-side.

Based on my research, I seem to have two options, the PhoneGap storage API or Worklight's in-built JSONStore. They both seem to do pretty much the same thing. What differences are there between the two, and which should I use?

Upvotes: 0

Views: 70

Answers (1)

Idan Adar
Idan Adar

Reputation: 44516

There is not one set answer for what you're asking.


You can take a look at this feature comparison table.

Based on the above table I would go with JSONStore, but should be noted that JSONStore supports only Android and iOS. You can also go the Cordova path or the fully native path and use the native database features each platform offers.

However, there are a couple of questions you need to ask yourself:

  1. "Which platforms am I going to support in my application?" and
  2. "What exactly do I want to accomplish with a client-side database?"

Based on the above questions and the feature comparison table, you should be able to reach a conclusion, whether to use JSONStore, an alternative, Cordova or the native path... or custom database for each. Whatever you will pick will have a varying degree of coding work to do.

Upvotes: 1

Related Questions