I am looking for a way to register IP addresses and user agents, and then request a list by IP address. I was hoping to keep the IP as efficient as possible, because the log might become very large over time. What type of data would I use for an IP address, string, long or decimal? and how can I index an IP column to speed up the Rails path?
Thanks!
source share