pyspark dropDuplicates performance issue
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2024 09:26 PM
Hi,
I am trying to delete duplicate records found by key but its very slow. Its continuous running pipeline so data is not that huge but still it takes time to execute this command.
df = df.dropDuplicates(["fileName"])
Is there any better approach to delete duplicate data from pyspark dataframe.
Regards,
Sanjay