由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 问个技术问题 (转载)
相关主题
这里人气多,问个网站的问题免费送酒店入住 25000 SPG Points Bonus 赶快申请SPG 信用卡
mysql 问题 (转载)免费送最高$250 Amazon GC 任意消费一笔SPG 信用卡
Starwood Preferred Guest 最好的酒店和里程信用卡免费送酒店入住 25000 SPG Points Bonus 赶快申请SPG 信用卡
Starwood Preferred Guest 最好的酒店和里程信用卡免费送酒店入住 25000 SPG Points Bonus 赶快申请SPG 信用卡
免费送最高五晚酒店入住 任意消费一笔SPG 信用卡免费送酒店入住 25000 SPG Points Bonus 赶快申请SPG 信用卡
免费送最高五晚酒店入住 任意消费一笔SPG 信用卡免费送酒店入住 25000 SPG Points Bonus 赶快申请SPG 信用卡
免费送最高五晚酒店入住 任意消费一笔SPG 信用卡Amex SPG卡免费送25K points 可换500刀现金
免费送酒店入住 25000 SPG Points Bonus 赶快申请SPG 信用卡Amex SPG卡免费送25K points 可换500刀现金
相关话题的讨论汇总
话题: ebay话题: category话题: 问个话题: categories话题: count
进入Programming版参与讨论
1 (共1页)
c*******l
发帖数: 334
1
【 以下文字转载自 Seattle 讨论区 】
发信人: classical (天南地北随遇而安), 信区: Seattle
标 题: 问个技术问题
发信站: BBS 未名空间站 (Sat Feb 28 12:59:46 2009)
如果搜索eBay或Yahoo Mail,会看到左边会显示带数字的结果:
X category
AAAA (3)
BBBBB(5)
CC (19)
Y category
HHH (8)
IIIII (39)
这是怎么实现的呢?象eBay这样可以用任何词进行搜索,而这个数字结果显示得这么快
,它是怎样保证performance的呢?
k***r
发帖数: 4260
2
It's only a little more work.
Say the search result gives you 10 vehicles, along with their
categories, it'll be easy to list them as:
Total (10)
Car (5)
Truck (3)
Minivan (2)
You just need to count the categories.

【在 c*******l 的大作中提到】
: 【 以下文字转载自 Seattle 讨论区 】
: 发信人: classical (天南地北随遇而安), 信区: Seattle
: 标 题: 问个技术问题
: 发信站: BBS 未名空间站 (Sat Feb 28 12:59:46 2009)
: 如果搜索eBay或Yahoo Mail,会看到左边会显示带数字的结果:
: X category
: AAAA (3)
: BBBBB(5)
: CC (19)
: Y category

c*******l
发帖数: 334
3
如果有100万个result,有10多个category呢?

【在 k***r 的大作中提到】
: It's only a little more work.
: Say the search result gives you 10 vehicles, along with their
: categories, it'll be easy to list them as:
: Total (10)
: Car (5)
: Truck (3)
: Minivan (2)
: You just need to count the categories.

g*****g
发帖数: 34805
4
It's a DB implementation of function group and count(*)

【在 c*******l 的大作中提到】
: 【 以下文字转载自 Seattle 讨论区 】
: 发信人: classical (天南地北随遇而安), 信区: Seattle
: 标 题: 问个技术问题
: 发信站: BBS 未名空间站 (Sat Feb 28 12:59:46 2009)
: 如果搜索eBay或Yahoo Mail,会看到左边会显示带数字的结果:
: X category
: AAAA (3)
: BBBBB(5)
: CC (19)
: Y category

1 (共1页)
进入Programming版参与讨论
相关主题
Amex SPG卡免费送25K points 可换500刀现金免费送最高五晚酒店入住 任意消费一笔SPG 信用卡
Amex SPG卡免费送25K points 可换500刀现金免费送最高五晚酒店入住 任意消费一笔SPG 信用卡
Amex SPG卡白送25K points 可换500刀现金 最佳酒店卡免费送最高五晚酒店入住 任意消费一笔SPG 信用卡
Amex SPG卡送25K points 白送500刀现金 最佳酒店卡免费送酒店入住 25000 SPG Points Bonus 赶快申请SPG 信用卡
这里人气多,问个网站的问题免费送酒店入住 25000 SPG Points Bonus 赶快申请SPG 信用卡
mysql 问题 (转载)免费送最高$250 Amazon GC 任意消费一笔SPG 信用卡
Starwood Preferred Guest 最好的酒店和里程信用卡免费送酒店入住 25000 SPG Points Bonus 赶快申请SPG 信用卡
Starwood Preferred Guest 最好的酒店和里程信用卡免费送酒店入住 25000 SPG Points Bonus 赶快申请SPG 信用卡
相关话题的讨论汇总
话题: ebay话题: category话题: 问个话题: categories话题: count