I know Discourse logs the Last IP and the Registration IP of users, and I was wondering which one of these the Lookup feature searches for.
Since there is an option to look up the both the Last and Registration IPs individually, I presume Last searches for other matching Last IPs and Registration searches for other matching Registration IPs?
If someone could just clarify this that would be great, thanks.
Picture a giant table with rows and columns, all of the data is filled in from user accounts. Each column has different fields, like usernames, email, how old the user is, and more, and there is a user in every row.
That search field is using a SELECT ... WHERE ... SQL query searching the columns of usernames, emails, registered IP OR last logged in IP. If a user has a matching IP in their row, it will be displayed in search results.
According to the profiler, this is the SQL query it performs to locate the users (IP censored):