Most efficient way to store IP Address in MySQL
- by ensnare
What is the fastest way to store and retrieve IP addresses in MySQL? Right now I'm doing:
SELECT * FROM logins WHERE ip = '1.2.3.4'
Where ip is a VARCHAR(15) field.
Is there a better way to do this? I'm using Python.
Thanks.