Results 1 to 9 of 9

Thread: Your experience with loading medium size of data to your app

  1. #1
    Sencha Premium Member
    Join Date
    Sep 2012
    Location
    Israel
    Posts
    122
    Answers
    3

    Default Your experience with loading medium size of data to your app

    Questions about your practice with loading a medium amount of data to ST2

    On the back I have a node.js connected to a mongodb (making requests for the front app and other processes)
    On the front , any device (..) able to run sencha touch 2 with phonegap -

    the main purpose of the app is wine categorization, so people can filter by species and harvest years.
    I'm talking about not much more than 6000 lines (looking at it like a relational table)

    1.Do you think I should hold the database locally ? if remote - 2
    1.1 If locally, how hard will it be to update it everytime I add a new wine?
    2. if I don't hold the information on the device, should I be calling to the jsonp every call? or first call it to get the main data inside a store and just then filter it locally with sencha?
    I think I can generalize the question.. where should I manipulate the data and should I save it locally at all(Basically I'd rather not..but think this might be the right way)?

    Please share your thoughts with me

    Thank you!

  2. #2
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Answers
    102

    Default

    "Medium size"??? Thats a very nebulous term dude.

    If you're using Phonegap, then it's possible to do database syncing. In fact, It's common practice and has been demonstrated all over the web, like with this blog: http://coenraets.org/blog/2012/05/si...-applications/

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2012
    Location
    Israel
    Posts
    122
    Answers
    3

    Default

    Hey Jay
    Medium as in around 6000 lines * 10 cells.. that not too much but not too little
    I am using phonegap.. do you think db syncing is better for UX?
    Thank you!

  4. #4
    Sencha User
    Join Date
    May 2012
    Posts
    154
    Answers
    8

    Default

    I would start by using a store. On app start make the server request and use a store to hold the data from your request. Thats very easy to implement, so you have a prototype very fast (probably in a couple of hours maximum).

    If the prototype should be too slow, you can always change to sqlite db storage with timestamp technique or whatever to sync your data.

    Both is no rocket science, but sqlite might be a bit harder, especially with syncing and updating data in your db and stuff that you have to take care off (backend and frontend).

  5. #5
    Sencha Premium Member
    Join Date
    Sep 2012
    Location
    Israel
    Posts
    122
    Answers
    3

    Default

    Thank you for your response!
    I don't mind it being hard.. it's totally ok and i'm comfortable with any option, just wondered what would work better

  6. #6
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,108
    Answers
    342

    Default

    You know the only way to know is to give both implementations a try. On different devices as performance will vary depending on the device specs.
    Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services [email protected]

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

    Need to include a test case use:
    The official Sencha Fiddle

  7. #7
    Sencha Premium Member
    Join Date
    Sep 2012
    Location
    Israel
    Posts
    122
    Answers
    3

    Default

    Yes I got your answer in the other forum after this was posted I'm set with what I'm going to do, thank you!

  8. #8
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,108
    Answers
    342

    Default

    Ooops sorry about that. Didn't realize I was replying on both threads.
    Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services [email protected]

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

    Need to include a test case use:
    The official Sencha Fiddle

  9. #9
    Sencha Premium Member
    Join Date
    Sep 2012
    Location
    Israel
    Posts
    122
    Answers
    3

    Default

    It's all right Thanks for the help and your engagement !!

Posting Permissions

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