Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SQL Delete freezing

Featured Replies

Hi all

I have a delete SQL command that freezes FM for around 40 seconds, before succesfully executing the command. The table in question has 30,000 records. The command is:

"DELETE FROM Originals WHERE Case_IDF IS NULL AND LOWER (Receive_Subject) LIKE LOWER ('%" & Settings::Case Filter Spark & "%')"

Have I done anything wrong here?

This is a fairly processing intensive SQL call as you are asking to transform 2 cols of 30,000 rows with LOWER and filtering the result with IS NULL and LIKE.

I would shift the LOWER to FM by making Originals::Receive_Subject and Settings::Case Filter Spark calculations that produce lower as a result.

PS SQL does not always like cols with spaces in the names so i would change Settings::Case Filter Spark to Settings::Case_Filter_Spark.

Edited by Kris M

  • Author

Thanks Kris I will try that.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.