I have 1 unit test which enters the user in system through UI but before that it removes the existing entry for that user
I have 3 sets of query and each set has only 1 record which I want to delete, but in my unit test it fails in executing delete query and returns timeout error
I don't know how can I optimise the query, If someone can help in this
delete from CustomerRoles where RegisteredCustomerId = (select Id from RegisteredCustomers where Email = 'boltestsignupseller@yahoo.com')
delete from SellerInfos where RegisteredCustomerId = (select Id from RegisteredCustomers where Email = 'boltestsignupseller@yahoo.com')
DELETE FROM RegisteredCustomers where Email = 'boltestsignupseller@yahoo.com'
Second and third query almost takes more than 2 minutes and eventually timeout