Skip to main content
Clarified that I'm asking about index on blobfield
Source Link
Thomas Johnson
  • 481
  • 2
  • 5
  • 13

I need to do the simple query SELECT id FROM table WHERE blob_field IS NULL.

blob_field is a longblob. If I create an index on blob_field with prefix length 1, will this be sufficient to use for this query?

I need to do the simple query SELECT id FROM table WHERE blob_field IS NULL.

blob_field is a longblob. If I create an index with prefix length 1, will this be sufficient to use for this query?

I need to do the simple query SELECT id FROM table WHERE blob_field IS NULL.

blob_field is a longblob. If I create an index on blob_field with prefix length 1, will this be sufficient to use for this query?

Source Link
Thomas Johnson
  • 481
  • 2
  • 5
  • 13

MySQL Index for searching for NULL values in text fields

I need to do the simple query SELECT id FROM table WHERE blob_field IS NULL.

blob_field is a longblob. If I create an index with prefix length 1, will this be sufficient to use for this query?