574 questions
2
votes
1
answer
148
views
PySpark persist() placement for a frequently mutating df
Persist() is helpful when the same dataframe is used repeatedly in the code.
But what about cases where transformations are on top of each other?:
a = spark.createDataFrame(data)
trigger action on a
...
0
votes
0
answers
31
views
How to make key presses stick from one command to the next?
I am on Windows 11 and have swapped the Alt and Ctrl keys to emulate keypresses on a MacBook.
Consider the following sequence of keypresses to cut everything and paste, which works:
Alt (Ctrl) + A =&...
2
votes
1
answer
68
views
How to cache dataframes that will be retained after spark session terminates
I'm new to data engineering, so this might be a basic question. But I haven't been able to clarify
--context--
I have a spark job executed by an Azure Data Factory pipeline every 10 minutes.
On every ...
4
votes
1
answer
2k
views
TypeError: Cannot redefine property: $persist in Laravel 11 with Livewire 3 and AlpineJs 3
I'm working on a project using Laravel 11, Livewire 3, and AlpineJs 3. I'm trying to use the @alpinejs/persist plugin to manage a dark mode toggle. However, I keep encountering the following error:
...
1
vote
6
answers
8k
views
'Chroma' object has no attribute 'persist'
I'm persisting the Chroma Database but it's giving me an error.
I'm basically redoing what's in this link.
https://github.com/hwchase17/chroma-langchain/blob/master/persistent-qa.ipynb
Is there any ...
0
votes
1
answer
88
views
cascade.Persist in @ManyToMany how does it work generally and how does it work in this situation
I have 2 entities, one is Student and the other is Course. They are connected to each other in a manytomany bidirectional manner. I am performing an operation as seen in the code below.
@...
0
votes
1
answer
205
views
AlpineJS $persist - save option once per page
I have a select dropdown built with AlpineJS and the chosen value is currently saved to sessionStorage once an option is chosen. However, the values for these options are different based on each page ...
0
votes
1
answer
262
views
Flatpickr Date Range Session Storage in ISO format with AlpineJS Persist
I am using AplineJS Persist to store the date range of Flatpickr to session storage. This is my Flatpickr code:
<div x-data="{
thePicker: null,
init(...
0
votes
1
answer
391
views
AlpineJS Dropdown with Default Option using Persist for Local Storage
The following code contains a drop down menu with two options for "Paris" and for "Rome". The drop down itself is working perfectly and storing the selected option in local storage ...
0
votes
0
answers
31
views
How to persist state in react if local storage does not work
For a react project that I am building, I have a context provider which gives the user a link to a composition based on the parameters they selected. I want this state(the compositions) to be saved, ...
2
votes
0
answers
713
views
Persist and unpersist in Spark while using same variable during the entire ETL
How will persist() and unpersist() work if all steps of my etl process would have the same variable name?
e.g:
df = new dataframe created by reading json for instance i dunno
df.persist()
df = df....
0
votes
1
answer
135
views
Save Flatpickr Date Range to Local Storage with AplineJS Persist
I am attempting to find some information on how I may use Flatpickr daterange to have a user select a date range and save it to local storage when clicking the "next" button.
I'd like to ...
0
votes
1
answer
48
views
Getting an error with Ballerina persistance
I'm getting below error when tried to run my code
Running executable
error: Error in SQL connector configuration: Failed to initialize pool: Public Key Retrieval is not allowed Caused by :Public Key ...
0
votes
1
answer
752
views
Autogenerated field of embedded id is null after JPA persisting
I have a class structure made up of a main class (called MaterialResource) that has an embedded id (called MaterialResourceId). Note also that the MaterialResourceId class has two fields: ...
0
votes
1
answer
464
views
JSReport Docker Container not writing to data folder
I have been trying to create a docker image of Jsreport that persists even after it is stopped. However, no matter what I try, templates and work done in the portal that the image is running does not ...
0
votes
1
answer
60
views
Persistence does not ocur in a stateless bean, using JPA when duplicate key exception is thrown
In a stateless bean, i´ve persisted a customer, but when I try to persist an entity product, this trows a duplicate key exception.
So the customer is not persisted in db. Why is that?
@Stateless
...
0
votes
1
answer
563
views
How I keep data inside BottomSheet Flutter when I close it?
I'm very new in Flutter (and programing).
I have a BottomSheet that cointains ChoiceChips and some Switches. It all works great but when I close the BottomSheet it does not save the state of the ...
0
votes
0
answers
65
views
My Redux persisted store is not persisting the state properly
I am creating a web app using Django as backend and React on frontend. Am pretty far ahead and almost ready to deploy on my staging server, currently just clearing some issues before I do that and I ...
1
vote
0
answers
829
views
React Native keyboard Flickering
My React Native app Having Two_Tabs in Material Top Bar Navigation where first tab Entry-item and second search-items while typing flicker focusing to second tab search bar/input.(Both auto_Focus).
(...
0
votes
0
answers
69
views
JPA @OneToOne and @OneToMany relationships to save entities
i have to do an entity mapping with this database structure
these are some sample data
the purpose is to create new user (tab. users), and each user has its own role (tab. userroles - OneToOne ...
-1
votes
1
answer
931
views
Quarkus JPA/Hibernate persist() not doing SQL insert, no error indicator
Using Quarkus for a small REST project. The main entity is a Bookmark, which has @Entity, @Id and so on annotations. The REST service methods directly delegate to a data service or DAO. The DAO's 4 or ...
0
votes
3
answers
5k
views
store does'nt persist pinia vuejs
i work on vuejs version 2.9 and i want to persist my store when the page is refreshed.
i use pinia and make like the online documentation : https://prazdevs.github.io/pinia-plugin-persistedstate/guide/...
0
votes
1
answer
609
views
How to set a parameter persistently by a query in PostgreSQL?
With SESSION and LOCAL below, I cannot set a parameter persistently in PostgreSQL:
SET SESSION log_statement = 'all'
SET LOCAL log_statement = 'all'
Actually with PERSIST and GLOBAL below in MySQL, ...
5
votes
1
answer
547
views
Spark Databricks fraction cached is dropping after an action (Scala) [closed]
I use persist command to cache a dataframe on MEMORY_AND_DISK and have been observing a weird pattern.
A persisted dataframe is cached to 100% when that specific job (Job 6, in the below screenshot) ...
0
votes
1
answer
88
views
Bidirectional @OneToOne persistence
I am starting with JPA and EclipseLink and did some experiments. But results are a little unexpected for my understanding. Here for example I have a bidirectional relation between two entities:
@...