Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › store records

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #19405

    Bas

    hi I need to store multiple records

    is settings the best way to do this?

    and is it better to store an array

    or  store a key value pair for each record.

     

    i need to iterate through the records sometimes.

    #19410

    Günther
    Felgo Team

    Hi Bas,

    for custom data that you want to store locally, I recommend to use an additional Storage component. The settings property is also a Storage that you can use, but it is good practice to have you custom data in an own Storage / Database. You can also easily switch to a WebStorage at a later point then, in case you want to store and synchronize the data with the Game Network Service.

    Best,
    Günther

    #19412

    Günther
    Felgo Team

    Regarding Array vs Key-Value Pair for each record: As you intend to iterate through your records, it makes sense to store an Array of your records.
    You can then load the data array with all records from the storage and process it as you like.

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded