Questions tagged [persist]

558 questions
12
votes
4 answers

Cypress: I want run tests in 100 spec files by login one time and persist login for every file. Is it possible?

I have almost 100 specs files including multiple tests. I want run all these specs files by login one time. I dont want my cypress should login process every time on every spec file It it possible to persist single login for all spec files
Kashif nadeem
  • 161
  • 1
  • 4
  • 12
12
votes
2 answers

[RN][Redux-Persist] AutoRehydrate is not a function

I am using redux-persist 5.5.0 When I debug my react native app, Error say "autoRehydrate is not a function" my source code here, give me help please "use strict"; import thunk from "redux-thunk"; import analytics from "./analytics"; import array…
JaeWang Lee
  • 199
  • 1
  • 11
10
votes
1 answer

Should I persist a Spark dataframe if I keep adding columns in it?

I could not find any discussion on below topic in any forum I searched in internet. It may be because I am new to Spark and Scala and I am not asking a valid question. If there are any existing threads discussing the same or similar topic, the links…
10
votes
3 answers

Spark RDD checkpoint on persisted/cached RDDs are performing the DAG twice

When I run code such as the following: val newRDD = prevRDD.map(a => (a._1, 1L)).distinct.persist(StorageLevel.MEMORY_AND_DISK_SER) newRDD.checkpoint print(newRDD.count()) and watch the stages in Yarn, I notice that Spark is doing the DAG…
Glenn Strycker
  • 4,816
  • 6
  • 31
  • 51
9
votes
1 answer

How to persist a new entity containing multiple identical instances of another unpersisted entity with spring-boot and JPA?

Overview: I'm building a spring-boot application which, in part, retrieves some entities from an external REST service and compares it to previous versions of the entity held locally in a database. I'm injecting EntityManager with…
Chris
  • 409
  • 3
  • 17
9
votes
2 answers

Where is my sparkDF.persist(DISK_ONLY) data stored?

I want to understand more about the persisting strategy of hadoop out of spark. When I persist a dataframe with the DISK_ONLY-strategy where is my data stored (path/folder...)? And where do I specify this location?
maffe
  • 220
  • 2
  • 11
9
votes
2 answers

How to persist Collections/List inside an object using JPA

I'm trying to persist a List inside an object Team. I cannot get JPA to persist it for me. After having read some posts, it looks like you are required to iterate thru the List<>, and persist each one individually. This just doesn't seem right to…
technocrat
  • 3,513
  • 5
  • 25
  • 39
8
votes
2 answers

Hibernate Cascade PERSIST

I have a general question about Hibernate that I'm batteling with. I have class A and class B, where B is dependent on A In my code when I call em.persist(objOfTypeA) I would expect the insert to go and insert into both tables AAA and BBB. If I…
WonkeyDonkey
  • 119
  • 1
  • 1
  • 5
8
votes
1 answer

How to: Pyspark dataframe persist usage and reading-back

I'm quite new to pyspark, and I'm having the following error: Py4JJavaError: An error occurred while calling o517.showString. and I've read that is due to a lack of memory:Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded So, I've…
Mike
  • 698
  • 1
  • 9
  • 16
8
votes
2 answers

How to get Doctrine entity persistent collection data values with symfony

What is best way to convert Doctrine entity persistent collection to array with symfony 2 ? I want to get the values and later by using that array value, need to get the second entity values which dependent on first entity using form event listener.
Abha Rana
  • 195
  • 1
  • 4
  • 13
8
votes
1 answer

What is difference between CascadeType.ALL, cascade = CascadeType.REMOVE and orphanRemoval

I searched the answer but I could not get it properly. What is difference between CascadeType.ALL, cascade = CascadeType.REMOVE, orphanRemoval when we set FetchType.EAGER on @OneToMany relationship? Once I had a problem while deleteing records. I…
Prashant Shilimkar
  • 8,402
  • 13
  • 54
  • 89
8
votes
1 answer

Detecting page unload in angularjs

I have a javascript object which I need global to my angularjs application. When the application is about to be unloaded (due to a page refresh or some other scenario), I would like to persist the object to browser storage. I believe adding the…
user1491636
  • 2,355
  • 11
  • 44
  • 71
7
votes
3 answers

Persisting an object in Hibernate while having a known primary key.

My problem is with detached objects... I am currently using Spring with Hibernate. I have a mapped object that has a primary key as a String (I know it sucks... but refactoring the code would take months), and I wish to persist it. (I have…
flavio_yama
  • 313
  • 1
  • 4
  • 10
7
votes
1 answer

Spark persist temp view

I'm trying to persist a temp view with the purpose of querying it again via sql: val df = spark.sqlContext.read.option("header", true).csv("xxx.csv") df.createOrReplaceTempView("xxx") persist/cache: df.cache() //…
darnok
  • 91
  • 1
  • 4
7
votes
1 answer

Persist in memory not working in Spark

I am trying the persist feature in Spark to persist the data in memory and do computations on it. I am under the assumption that storing the data in memory would make the computations faster for iterative algorithms such as K-means clustering in…
Ravi
  • 3,223
  • 7
  • 37
  • 49
1
2
3
37 38