Skip to content

Instantly share code, notes, and snippets.

@shaneonabike
Created November 1, 2019 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shaneonabike/74d978ccc0017718c405b756d948b668 to your computer and use it in GitHub Desktop.
Save shaneonabike/74d978ccc0017718c405b756d948b668 to your computer and use it in GitHub Desktop.
SELECT n.nid FROM node n LEFT JOIN search_dataset d ON d.type = 'node' AND d.sid = n.nid WHERE d.sid IS NULL OR d.reindex <> 0 ORDER BY d.reindex ASC, n.nid asc;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment