Deleting large number of objects

More
1 year 6 months ago #24682 by Debora
Hi.

I have a lot of objects that need to be deleted. More than 30, can this be done directly in the database and if so, which tables?
The problem with doing it in the app is that it takes so long to delete one object. 1-2 minutes each at least.

Please advise.
 

Please Log in or Create an account to join the conversation.

More
1 year 6 months ago #24685 by admin
Please see bellowuse OBJECTS_TREE table to figure out which OBJECT_ID  to delete

Than use this script to delete them

delete from OBJECTS_TREE where OBJECT_ID=
delete from OBJECTS where OBJECT_ID=
delete from OBJECTS_HISTORY where OBJECT_ID=
delete from CONNECTIONS where OBJECT_ID=
delete from SCHEDULE where OBJECT_ID=Please make a backup first.

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save