php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56184 No get_multi support
Submitted: 2004-09-03 22:31 UTC Modified: 2004-11-05 02:17 UTC
From: chris-pecl at bolt dot cx Assigned: tony2001 (profile)
Status: Closed Package: memcache (PECL)
PHP Version: 4.3.8 OS: Linux 2.6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chris-pecl at bolt dot cx
New email:
PHP Version: OS:

 

 [2004-09-03 22:31 UTC] chris-pecl at bolt dot cx
Description:
------------
There is no support for getting multiple items from a server in one call, which slows down getting lots of items.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-04 01:06 UTC] tony2001@php.net
I'm sure there is no significant slowdown.
Memcache is some kind of basement for you applications. If you can write in 2 mins a function that will get multiple items from the server (I'm sure you can) than what is the point to implement it in the memcache?
 [2004-09-04 01:42 UTC] chris-pecl at bolt dot cx
There is more of a slowdown if you are fetching 200+ items from a non-local server, since round trip times add up. Otherwise why would they have added the ability to fetch multiple items at once to the memcache protocol?

199 items fetched in 0.0443150997162 seconds
199 items fetched in 0.473651885986 seconds

First number was using the new pure-php client from cytherianage (http://www.danga.com/memcached/apis.bml, the page appears to be down) with the hashing function modified to use the crc32 method from http://lists.danga.com/pipermail/memcached/2004-July/000713.html

Second number was using the PECL memcache 1.2 client and a PHP class to handle multiple servers, using the same hashing method as above. It fetches multiple items in a simple loop.

Sources:
First class: http://dali.deviantart.com/~chris/memcached-client.php.txt
Second class: http://dali.deviantart.com/~chris/memcache.lib.php.txt
Benchmark: http://dali.deviantart.com/~chris/mctest.php.txt
 [2004-09-04 02:10 UTC] tony2001@php.net
Ok, I'll take a look at it later a bit.
Feel free to write a patch if you're interested.
 [2004-11-05 02:17 UTC] tony2001@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 19:01:28 2024 UTC