I have a table called brute to account the errors during login and stuff and prevent brute force attacks showing a captcha.
it has the fields: domain, ip, time
-
Deletions are based in the
timefield. ex: delete all entries older than 1 day. -
Selections takes all three columns to detect a possible attack. ex: 5 entries (errors) of ip xxxx in login in less than 10 minutes.
The question is: do I really need an index (primary or not)? Some friends are telling me i need but it just feels unnecessary.
obs: I've stumbled in similar questions around here. Although helpful, they couldn't solve my question entirely for this case. thank you (:
Adding to what Oded mentioned, if the site is going to be internet facing (which it looks like it will be), I suggest you adding indexes as that table might become very, very big. Specially after a few of the nasty things on the internet crawl your site and start trying to guess a login.