Questions tagged [data-persistence]
256 questions
0
votes
1 answer
Ignite loadCache() and write behind
We're using Ignite, and for this particular cache we want to use write behind to insert new rows in an RDBMS when items are added to the cache.
The wrinkle is, we want to initially load the cache with existing rows.
At the moment Ignite attempts to…

gillish
- 11
- 3
0
votes
0 answers
Unable to run integration test cases after Grails 4 migration
After migrating the application from Grails 3.3.11 to Grails 4.0.6, I am unable to run integration tests. When I tries to run integration test it throws error as:
java.lang.IllegalStateException: Failed to load ApplicationContext
at…

Soven K Rout
- 123
- 1
- 9
0
votes
2 answers
Android Studio Room data without livedata
I got the following Room database and want to output the name of a random user in a textview. Unfortunately running the code yields the output: kotlin.unit inside the textview. My files look like that:
MainActivity.kt
class MainActivity :…

Cion
- 85
- 8
0
votes
1 answer
Can logstash's Google Cloud Storage output plugin do persistent transmission after restart machine?
Using this config for logstash's output. It's using /tmp/logstash-gcs as a local folder. Send to GCS when file become 1024 kbytes.
input {
beats {
port => 5044
}
}
filter {}
output {
google_cloud_storage {
bucket =>…

iooi
- 453
- 2
- 10
- 23
0
votes
2 answers
Best way to store objects with images locally on disk in Flutter?
I'm making a super simple cookbook (like literally, for food) app for one single person, so I haven't been thinking that I want/need to use a database or any internet connectivity. When the user creates a recipe, the recipe object contains a bunch…

Jackson
- 31
- 5
0
votes
1 answer
Retain State of TextView Color
I'm rendering some TextViews on a LinearLayout. These TextViews hold times that a user can select. If the user selects it, the TextView's color is set to green. If the user selects the TextView (time) again, then it reverts to grey.
So the behavior…

iuni
- 23
- 9
0
votes
0 answers
does querying a list of entities from database loads the entities into managed context in jpa?
for example:
1.I have 100 entities in a database
2.when i select all those 100 entities via select query,will those entities be loaded to managed context?
3.If yes , what happens if we dont change any attribute values of those entities,will it be…

kumar rishav
- 1
- 1
0
votes
1 answer
what is the better way to implement auditing in redis cache (using redis as persistant storage) in spring boot?
Audit class :
public class Audit {
private Long createdDateTime;
private Long updatedDateTime;
private String createdBy;
private String updatedBy;
}
Entity
public class User extends Audit {
}
Is there a way to listen to Entity…

cnsnaveen
- 345
- 3
- 9
0
votes
1 answer
How to programmatically control the persistence in redis
I'm using redis with my spring boot application using jedis, spring-data-redis. I want to control the persistence mechanism of redis in the following way.
In one case I want the data to be persisted into the dump file, so
that on restart of redis…

Vivek
- 11,938
- 19
- 92
- 127
0
votes
2 answers
Persistent object in BlackBerry Application
I have been trying to use the persistent object in BlackBerry Application.
I am making a login page where I can save the username and password in the application. Below is the code I used in the login page
public final class LoginScreen extends…

alanvabraham
- 779
- 2
- 14
- 25
0
votes
1 answer
Saving a file with a variable of datatype 'Data" in Swift
I'm new to programming and I'm trying to write a function in Swift to download a JSON and parse it.
However, the JSON is very complicated and I have a daily limit on number of requests of data from the server.
Is there a way to download the data and…

Daniel Poit F
- 37
- 5
0
votes
1 answer
Saving Data in UITableview
I have an app whereby a user can add books to a favourites list, by populating a tableview. Details on the book are displayed in a view and by tapping a 'favourites', a segue is performed inputting info on that book into a tableview cell.
At…

Davos
- 5
- 2
0
votes
2 answers
overwrite a file on tape
I'm trying to write a program to store large amount of data (100s of PB) on tapes. I'm using tar to group files together, but for technical reasons I've decided to write multiple tars in one tape.
In order to easily find what data are on a tape,…

mmohaveri
- 528
- 7
- 23
0
votes
1 answer
How to make multiple multiple tables in room during run time of an app?
I am trying to make a Ledger app in which there would one base table which would contain the name, phone number etc and a table containing all list of transaction corresponding to a particular person. Now I don't know how many persons I would add so…
user12586023
0
votes
1 answer
Android Room giving error "Pre-packaged database has an invalid schema" but exported schema is correct
I am migrating from SQlite to room in my existing application. Therefore I created migration strategy to create new temporary tables, copy existing data into temporary tables and delete old tables and rename new tables.
After migrating, I checked my…

sinan
- 570
- 5
- 24