DatabasePruningFactory::forQuery(DB::table('table')->where('column', $value))
->chunk(700)
->displayName($name = 'DeleteTransactions')
->usingConnection($connection) // specify sql connection to perform the deletion.
->getBatch()
->name($name)
->onConnection('your job connection')
->onQueue('your job queue')
->dispatch();
-
Notifications
You must be signed in to change notification settings - Fork 0
Job based for pruning database tables with large dataset
License
trybunce/database-pruning
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Job based for pruning database tables with large dataset
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published