Results 1 to 5 of 5

Thread: How and Where to store data ?

  1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    1
    Vote Rating
    0
      0  

    Default Unanswered: How and Where to store data ?

    I have following case to handle:

    My application has around 5000 book titles. Now, I don't want application to ping server to get these books on his mobile. Application will need to access this data during run time. So should I

    a) dump the data into sqlite at the time of installation of the application ? (First time run)
    b) Fetch data from files only. ( I will be making sorting and querying operations over this data - may not be a good solution if I store the entire file in an array at once and process it further )

    Kindly advice.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,316
    Answers
    3881
    Vote Rating
    1290
      0  

    Default

    Sounds like sqlite may be best
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    5
    Vote Rating
    0
      0  

    Default Can I prestore data ?

    thanks a lot for the reply.

    Can I store pre-package the data at the time of deployment. Or should I prepare a dump sql file which I should insert at the time of install. Please enlighten me.

  4. #4
    Sencha User
    Join Date
    Oct 2012
    Posts
    18
    Answers
    2
    Vote Rating
    0
      0  

    Default

    Depends on your use case.

    If your users will not have access to the server at all, and the data is static, store it locally. If data is dynamic, retrive it on request from the server. If your customer use case is some combination of the two, or they do not always require up-to-date data, then implement as you see fit.

  5. #5
    Sencha User
    Join Date
    Feb 2011
    Location
    Dsseldorf, Germany
    Posts
    594
    Answers
    35
    Vote Rating
    33
      0  

    Default

    I guess you will need the sql only if you are updating the books.
    If you are not updating the books keep them in a file or as a static and load the JSON string as data object.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •