Questions tagged [data-persistence]
256 questions
6
votes
3 answers
Storage medium for the lifecycle of a single request?
Im sure there was a request-wide object-based storage medium, similar to HttpContext.Current.Session, that persisted globally just for the life of a single request, but I cannot for the life of me remember it.

maxp
- 24,209
- 39
- 123
- 201
5
votes
1 answer
Android Room recursive relation
It's possible for room to have Recursive relations?
I have an Entity that can be nested in a Parent/Childs structures something like this
Category1
|_________Category2
|_________Category3
| |_________Category4
|_________Category5`
I'm copying…

CLucera
- 1,091
- 11
- 29
5
votes
3 answers
Android EditText sometimes loses input when App resumes
I've made a rudimentary Data logging app, which is supposed to have the user input values into a dynamic and often large number of EditText views. Once the user has finished entering all of the Data, a button can be pressed which takes a picture of…

Ryan
- 762
- 8
- 17
4
votes
1 answer
Elasticsearch data gets deleted when creating with existing disk using a new kubernetes cluster
I have created a PersistentVolume, PersistentVolumeClaim and StorageClass for elasticsearch in a perisistance.yaml file.
The PersistentVolume, StorageClass,PersistentVolumeClaim is created successfully. The bound is also successful.
kind:…

klee
- 1,554
- 2
- 19
- 31
4
votes
1 answer
Best Way to save array of objects in iPhone app.
I have an iPhone program with a table view. The table view gets its data from a NSMutable Array. I want people to be able to add data to that table, i.e add objects to that array. Using addObject and reloadData, I am able to add objects to the…

Aravind
- 284
- 1
- 4
- 10
4
votes
2 answers
Any ideas for persisting H2 Database In-Memory mode transaction?
The following code for H2 database with "in-memory mode" runs perfectly fine until connection is open or VM is running. But H2 db loses data when connection is closed or when VM shutdown takes place. Is there any other way to persist data across…

Dhwanit
- 610
- 1
- 9
- 17
3
votes
2 answers
How to realize persistence of a complex graph with an Object Database?
I have several graphs. The breadth and depth of each graph can vary and will undergo changes and alterations during runtime. See example graph.
There is a root node to get a hold on the whole graph (i.e. tree). A node can have several children and…

Asna Jarl
- 63
- 3
3
votes
4 answers
Sorted Array vs Hashtable: Which data structure would be more efficient in searching over a range of dates in a calendar app?
I have about a year of experience in coding in Java. To hone my skills I'm trying to write a Calendar/journal entry desktop app in Java. I've realized that I still have no experience in data persistence and still don't really understand what the…

Matthew Jackson
- 31
- 2
3
votes
1 answer
Swift & Firebase - Out of sync after isPersistenceEnabled
I have a problem with my connection between my app and firebase database. After adding:
Database.database().isPersistenceEnabled = true
To my AppDelegate, some of the data is out of sync.
To get my data i…

Lasse Bickmann
- 195
- 3
- 14
3
votes
2 answers
Save image from URL and make it persist IOS Swift
I would like to save images from a URL and then use them inside my app.
I saved them in variables but how can I make them persist until the user deletes the app ?
Here is the code for saving images in variables
let backgroundURL:NSURL? =…

Mike Me
- 2,192
- 3
- 20
- 32
3
votes
2 answers
Generating monotonically increasing integers (max 64bit)
As part of a new project we need a service which can generate monotonically increasing integers. Requirements for the service are:
service does not need to produce contiguous integer as long as it produces monotonically increasing integers it…

Trying
- 14,004
- 9
- 70
- 110
3
votes
2 answers
PhP/MySQL Storing User Searches between Pages so the User Can Go Back to Them
I'm writing a php-mysql application. The application allows the user to run a search against the database. When the search is run, if the user clicks on the back button to go back to it after examining an item brought up by it, they are asked if…

Daniel Bingham
- 12,414
- 18
- 67
- 93
3
votes
2 answers
core data not persisting between launches
I'm running into a strange problem with Core Data. In a particular view controller I'm loading the views from objects in Core Data. When I run the app, the first time it loads this view Core Data returns nothing from my fetch. So I repopulate Core…

soleil
- 12,133
- 33
- 112
- 183
3
votes
5 answers
Is it reasonable to save data as python modules?
This is what I've done for a project. I have a few data structures that are bascially dictionaries with some methods that operate on the data. When I save them to disk, I write them out to .py files as code that when imported as a module will load…

Andrei Vajna II
- 4,642
- 5
- 35
- 38
2
votes
1 answer
iOS: best way to encode/decode memory intensive objects
I'm fairly new to iOS programming and am struggling to decide on what is the best way to encode memory intensive objects using the NSCoding protocol.
I have a large number of Item objects. Each Item has numerous hi-res images associated with it.…

maxedison
- 17,243
- 14
- 67
- 114