|
Hello everyone,
Recently i've used the redis to replace my mysql database.
I have a performance problem: i need to insert data to my redis database.
i use this function to insert the data, one by one like that:
$r->set("func:funcid:name". "joe")
$r->set("func:funcid:type". "1234")
...
i have something like 20 different types of data (such as name, type etc.) i need to save about each funcid, and i have about 8000 records to save each time, thats takes me about 10-14 seconds.
Is there anyway to set 20 different data to one funcid quickly, and then to 8000 records ?
Thanks!
|