Questions tagged [persistence]

Persistence in computer programming refers to the capability of saving data outside the application memory.

Persistence is the capability of saving data outside of application memory, and of retrieving it later for further processing.

Typically data can be stored into the file system, in flat files or in a database. But persistence can also involve sending data to external applications.

Often persistence is related to .

References.

5099 questions
19
votes
4 answers

PHP - ini_set('session.gc_maxlifetime', 5) - Why it doesn't end the session?

The PHP script is as follows:
q0987
  • 34,938
  • 69
  • 242
  • 387
19
votes
2 answers

Oracle thin driver vs. OCI driver. Pros and Cons?

When you develop a Java application that talks to oracle DBs, there are 2 options right? One is oracle thin driver, and the other is OCI driver that requires its own installation (please correct if I'm misunderstanding). Now, what are the pros and…
Enno Shioji
  • 26,542
  • 13
  • 70
  • 109
19
votes
4 answers

Is there an iPhone-like Keychain in Android?

I'm looking for something like the Keychain on the iPhone, but for Android development. Something that gives me the capability to save small key-value pairs that are persistent and unchanged even if the user reinstalls the application. Is there…
Janusz
  • 187,060
  • 113
  • 301
  • 369
19
votes
2 answers

Persisting std::chrono time_point instances

What is the correct way to persist std::chrono time_point instances and then read them back into another instance of the same type? typedef std::chrono::time_point time_point_t; time_point_t tp =…
Zamfir Kerlukson
  • 1,046
  • 1
  • 10
  • 20
18
votes
3 answers

Python pandas persistent cache

Is there an implementation for python pandas that cache the data on disk so I can avoid to reproduce it every time? In particular is there a caching method for get_yahoo_data for financial? A very plus would be: very few lines of code to…
Luca C.
  • 11,714
  • 1
  • 86
  • 77
18
votes
11 answers

Are there any Java VMs which can save their state to a file and then reload that state?

Are there any Java VMs which can save their state to a file and then reload that state? If so, which ones?
Ande Turner
  • 7,096
  • 19
  • 80
  • 107
18
votes
4 answers

Where is the Persistence tool window in Intellij IDEA 15?

I want to generate model Class from mysql database, but I cannot find the persistence tool window which is easily searched in IDEA 14.
zhongwei
  • 325
  • 1
  • 5
  • 15
18
votes
5 answers

In Ruby on Rails how can I persist objects in memory between sessions

I'm trying to build something (ultimately a gem but for now an application) that works as follows. Suppose for example the DB records are breeds of dog. There's a Dog parent class and a child class for each breed. The actual breeds aren't known…
hershey
  • 465
  • 1
  • 8
  • 19
18
votes
5 answers

Java OutputStream equivalent to getClass().getClassLoader().getResourceAsStream()

I am attempting to store the change made to my application's properties. The .properties file is located in resources package, which is different from the package that contains my UI and model. I opened the package…
craig
  • 25,664
  • 27
  • 119
  • 205
18
votes
8 answers

Error on compiling query: The abstract schema type 'entity' is unknown

I'm developing a game with a database connection, and I use JPA to persist my data. Here is my Game entity : @Entity @Table(name = "game") public class Game implements Serializable { private static final long serialVersionUID =…
Mohamed Amine
  • 2,264
  • 1
  • 23
  • 36
18
votes
4 answers

How to store enum type as lowercase string?

My model class (piece): public class User ... { @Enumerated(STRING) private Status status; ... public enum Status { ACTIVE, INACTIVE; @Override public String toString() { return…
eugenes
  • 701
  • 2
  • 7
  • 16
18
votes
5 answers

How to open a core data database?

Is there any way in which I can view my core data database without having to load it programatically through the code?!
Doane Linde
17
votes
9 answers

Quick'n'dirty persistence

I often find myself needing a quick ( in terms of code ), lightweight ( in term of runtime, dependencies) persistence solution for simply a bunch of objects, mainly between application restarts. Usually I resort to some Java serialisation hack, but…
Robert Munteanu
  • 67,031
  • 36
  • 206
  • 278
17
votes
3 answers

iOS persistent storage strategy

I'm developing an app which will save data to the local file system. The data that will be saved will be mostly NSString and NSDate. The data will not be saved that often, perhaps new data will be entered 10 times at a typical usage. The data should…
Peter Warbo
  • 11,136
  • 14
  • 98
  • 193
17
votes
10 answers

SQLite Alternatives for C++

I am developing a application that needs to store data with many writes and reads as requiring fast searching of data (the need for indexes of some sort), and also be able to serialize and save the data. Currently I am thinking about using SQLite,…
The Unknown
  • 19,224
  • 29
  • 77
  • 93