Questions tagged [data-persistence]

256 questions
1
vote
0 answers

SwiftUI save favorite

So I have an app like the landmark app from apple. I'm trying to figure out how to save the favorites, but I'm struggling with it. I tried with save() and with userDefaults but with no result. Some solutions use Toggle(isOn:), but the code doesn't…
1
vote
3 answers

Spring Boot JPA how to handle child table updates

I've come from a background in my previous role of doing all data persistence with all custom SQL and JDBC. Just started a new job for a small business where I'm the only developer and have decided to develop the businesses systems using Spring Boot…
mike8787
  • 23
  • 4
1
vote
1 answer

How to write/read a text file from uninstallation-persistent memory in Android 10

I want my app to write a text file to the Documents folder (or any other part of the memory that persists after the app is uninstalled). Up to Android 9 (SDK 28) the Documents folder could be accessed as follows…
1
vote
1 answer

Correct practice for storing large images securely

What is the correct way to store large images on iOS, where "large" means > 1MB? Also, I want to prevent the user having the ability to access them via some kind of hacking.
Thizzer
  • 16,153
  • 28
  • 98
  • 139
1
vote
1 answer

What is best practice for data persistence in hierarchical classes using NSCoding in Swift?

Problem: I've implemented data persistence in my iOS app using NSKeyedArchiver and it currently functions to save hierarchical data, but only from the top level class. How can I make it possible to save the entire hierarchy from any…
1
vote
2 answers

Xamarin forms application data persistence after uninstall

I'm looking for a way to store application data even after it has been uninstalled for both iOS and Android. I'm currently using Application.Current.Properties from Xamarin.Forms. But the data is being erased upon uninstallation of the app. So are…
Michael
  • 548
  • 6
  • 23
1
vote
1 answer

Size Limitation of NSUserDefault?

Is there a size limit to NSUserDefaults? What is it? I'm afraid that such a limit can cause my app to crash.
RAMAN RANA
  • 1,785
  • 4
  • 21
  • 40
1
vote
1 answer

How can I return a new non-repeating item from a list in Django while keeping track of previous items?

I'm working on an app where a user can select a category, which will return a random selection from that category. The main functionality I'm trying to implement is once an item is selected, it can no longer be randomly selected in session. For…
1
vote
1 answer

Load into CoreData

I have created a window based application with the coredata framework included. I have edited my xcdatamodel, created a new entity, defined attributes and generated the managed object class file. When I now try to run my application, my app crashes…
Aravind
  • 284
  • 1
  • 4
  • 10
1
vote
1 answer

How to save a NSMutableDictionary in NSUserDefaults

I need to save a NSMutableDictionary in NSUserDefaults. I have searched the web for many examples, but have not received any ones that are relevant enough. Can somebody post a small piece of code which will save a NSMutableDictionary in…
1
vote
1 answer

Prometheus storage on Kubernetes

Kubernetes Version: 1.10 We are running Prometheus on a Kubernetes cluster(running on Bare metal). Kubernetes is running with only one POD. ISSUE - Prometheus metrics are not persisted if it's POD restarts. We also tried to configure persistence…
1
vote
2 answers

Shared Prefs with Flutter, what am I doing wrong?

I'm trying to use a sharedprefs to simplify data persistency across different Pages/Fragment, (ignore the "json" written here and there) and before you ask, this is just for disposable data, the app will be build over SQL. so I created a class to…
Francesco Iapicca
  • 2,618
  • 5
  • 40
  • 85
1
vote
1 answer

Persistence of data for MSI installation

The MSI installation would call my (native/C++) custom action functions. Since the DLL is freshly loaded, and the MSIEXEC.EXE process is launched separately for each function (the callable actions, as specified in MSI/WiX script), I cannot use any…
Ajay
  • 18,086
  • 12
  • 59
  • 105
1
vote
3 answers

Issues with Docker Swarm running TeamCity using rexray/ebs for drive persistence in AWS EBS

I'm quite new to Docker but have started thinking about production set-ups, hence needing to crack the challenge of data persistence when using Docker Swarm. I decided to start by creating my deployment infrastructure (TeamCity for builds and NuGet…
1
vote
0 answers

what is the best way to sync redis cache data with a db

I am using Redis solely as a cache server, so both RDB & AOF are turned off as I already have a DB in place and having 2 layers that do the same thing is an overkill. While this setup works perfectly when the DB is the only source of truth, my…
ctf0
  • 6,991
  • 5
  • 37
  • 46