搜索

大约有 100 项符合查询结果, 库内数据总量为 3,513 项。 (搜索耗时:0.0074秒)

61.XSServer::hasRespond

...ass.php#L350 (显示) public function hasRespond(){ // check socket if ($this->_sock === null || $this->_flag & (self::BROKEN | self::FILE)) { return false; } $wfds = $xfds = array(); $rfds = array($this->_sock); $res = stream_select($rfds, $wfds, $xfds, 0, 0); return $r...

62.RE: 搜索全文时较慢,在0.5+秒,甚至1.0+秒【900M数据库】

发布时间:2013-07-05 17:07 t By chinapubmed

[php][root@west123110 tmp]# dd bs=64k count=4k if=/dev/zero of=test oflag=dsync 记录了4096+0 的读入 记录了4096+0 的写出 268435456字节(268 MB)已复制,24.6265 秒,10.9 MB/秒 [/php] 经hightman老大测试,似乎是硬盘的读取速度太慢了。 好吧,看来要换个...

63.XSSearch::getAllSynonyms

...$this->execCommand($cmd, XS_CMD_OK_RESULT_SYNONYMS); $ret = array(); if (!empty($res->buf)) { foreach (explode("\n", $res->buf) as $line) { $value = explode("\t", $line); $key = array_shift($value); $ret[$key] = $value; } } return $ret;} ...

64.XSServer::execCommand

...s_arg = XS_CMD_NONE, $res_cmd = XS_CMD_OK){ // create command object if (!$cmd instanceof XSCommand) { $cmd = new XSCommand($cmd); } // just cache the cmd for those need not answer if ($cmd->cmd & 0x80) { $this->_sendBuffer .= $cmd; return true; } // send cm...

65.XSDatabasePgSQL

...php/util/XSDataSource.class.php#L569 (显示) public function close(){ if (is_resource($this->link)) { pg_close($this->link); $this->link = null; }} 关闭数据库连接 connect() 方法 public void connect($param) $param 源码: sdk/php/util/XSDataS...

66.RE: [2010] SCWS-1.1.3 发布,支持文本词典实现自定义词库啦!!

更新时间:2010-10-22 19:10 t By hightman

...parse the sentence */ s->off = off; ch = txt[off]; ! if (SCWS_CHAR_TOKEN(ch)) { s->off++; SCWS_PUT_RES(off, 0.0, 1, attr_un); --- 1035,1041 ---- /* try to parse the sentence */ s->off = off; ch = txt[off]; ! ...

67.XSDatabaseMySQL::setUtf8

...p/util/XSDataSource.class.php#L534 (显示) public function setUtf8(){ if (version_compare(mysql_get_server_info($this->link), '4.1.0', '>=')) { return @mysql_query("SET NAMES utf8", $this->link); } return false;} 将输出字符集设置为 UTF-8

68.RE: Overflow bug

更新时间:2010-12-30 22:12 t By hightman

...ecord */ *************** *** 266,271 **** --- 267,273 ---- if (vlen != NULL) *vlen = rec.value.len; _xdb_read_data(x, value, rec.value.off, rec.value.len); + *((char *)value + len) = '\0'; } return value; } [/c...

69.XSSearch::count

...ull){ $query = $query === null ? '' : $this->preQueryString($query); if ($query === '' && $this->_count !== null) { return $this->_count; } $cmd = new XSCommand(XS_CMD_SEARCH_GET_TOTAL, 0, $this->_defaultOp, $query); $res = $this->execCommand($cmd, XS_CMD_OK_SEARCH_TOTAL); $...

70.RE: SCWS-1.0.3 + PHP 5.3.0 問題回報

更新时间:2009-07-16 22:07 t By hightman

... ! /* $Id: php_scws.c,v 1.3 2009/05/14 19:25:32 hightman Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" --- 16,22 ---- +----------------------------------------------------------------------+ */ ! /* $Id: php_scws.c,v 1.4 2009/07/16 14:16:03 hightman Exp $ */ #ifde...

  • 时间不限
  • 按相关性排序