Max Registrations From IP
#3

^ What he said.

Also if you only want to count something you should use the COUNT() aggregate function. Sending over the entire resultset (possibly containing hundreds of rows) is more resource intensive and therefore slower. The COUNT() function will always give 1 row with 1 column with 1 value that contains the number of rows. Even if the count is 0.
Reply


Messages In This Thread
Max Registrations From IP - by yvoms - 21.01.2016, 22:21
Re: Max Registrations From IP - by Jefff - 21.01.2016, 22:25
Re: Max Registrations From IP - by Vince - 21.01.2016, 22:33
Re: Max Registrations From IP - by yvoms - 21.01.2016, 22:34
Re: Max Registrations From IP - by Jefff - 21.01.2016, 23:04
Re: Max Registrations From IP - by yvoms - 21.01.2016, 23:14

Forum Jump:


Users browsing this thread: 2 Guest(s)