Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Option to delete Records that were not in the import file #54

Open
tkowtsch opened this issue Dec 14, 2024 · 0 comments

Comments

@tkowtsch
Copy link

Use case: ICS file with events is imported via scheduler task. New events are automatically added. Changed events that were imported earlier are updated. But deleted events... remain untouched. Same as old events.

Workaround: Use "delete all records on PID before Import". But with that, all events are imported freshly afterwards. No more update of records, but hundreds of autoincrements in the database, tons of inserts, ...

Proposed solution: Add new config parameter "remove records not related to import". If set,

  • create a list of all External EventIDs
  • Delete records from PID where import_id NOT IN [list of IDs] and import_source=newsimporticsxml_ics

To save memory and processing time, the list should be created only if this flag is set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant