Redian新闻
>
How did they track the article status in this BBS?
avatar
How did they track the article status in this BBS?# Database - 数据库
C*n
1
I mean the READ/NOREAD status.
The system remember the read/noread status for every user/every articles, I
just feel it's kindof impossible.
I guess we have 2000 users. Let's say we have up to 100 discussion board, and
there're up to 10,000 articles in every board. (Actually, shopping board
already has more than 9,000 articles). If we use a table like UserID/ArticleID
to track the status, it just seems amazing to me, because there's gonna be
about 2000 X 10000 X 100 = 2,000,000,000 records in th
avatar
b*e
2
i don't think tehy need to use userid/articleID. if you know how newsgroups
tracks what articles you read, it's only one row per userid/board. all the
unread articles separated by commas form the one column of unread_articles

【在 C****n 的大作中提到】
: I mean the READ/NOREAD status.
: The system remember the read/noread status for every user/every articles, I
: just feel it's kindof impossible.
: I guess we have 2000 users. Let's say we have up to 100 discussion board, and
: there're up to 10,000 articles in every board. (Actually, shopping board
: already has more than 9,000 articles). If we use a table like UserID/ArticleID
: to track the status, it just seems amazing to me, because there's gonna be
: about 2000 X 10000 X 100 = 2,000,000,000 records in th

avatar
C*n
3
Sounds good, but there're more than 9000 articles in Shopping board.
So the column will in size of 9000X4 = 36k, maybe we'll have to make it 50k.
Is this too big?
But it's a good solution then, I am wondering the speed to join the article
table with the this status table.
Thanks,

I
and
UserID/ArticleID

【在 b****e 的大作中提到】
: i don't think tehy need to use userid/articleID. if you know how newsgroups
: tracks what articles you read, it's only one row per userid/board. all the
: unread articles separated by commas form the one column of unread_articles

avatar
b*e
4
no, they can use 34-50,52,60-75

【在 C****n 的大作中提到】
: Sounds good, but there're more than 9000 articles in Shopping board.
: So the column will in size of 9000X4 = 36k, maybe we'll have to make it 50k.
: Is this too big?
: But it's a good solution then, I am wondering the speed to join the article
: table with the this status table.
: Thanks,
:
: I
: and
: UserID/ArticleID

avatar
C*n
5

What does this mean?
And if a column is too big, it has to be in text mode, and text can't be used
to compare using "like something%...'.
Thanks,
Calvin
50k.
article
newsgroups
the
unread_articles

【在 b****e 的大作中提到】
: no, they can use 34-50,52,60-75
avatar
a*a
6
but what if my unread articles are 3,6,9,...,3n? it'll taken even bigger
column because you need to say: 1-2,4-5,7-8... instead of 3,6,9.

【在 b****e 的大作中提到】
: no, they can use 34-50,52,60-75
avatar
b*e
7
statistically this is a small-probability event. how many users leave
their boards with Ns scattered all over the place?
this, by the way, is also known as run-length encoding

【在 a*****a 的大作中提到】
: but what if my unread articles are 3,6,9,...,3n? it'll taken even bigger
: column because you need to say: 1-2,4-5,7-8... instead of 3,6,9.

avatar
a*a
8
ok, that makes sense.
so i guess they store this read/unread information like this:
0xff, 0x00, 0xff, 0x1 (ie. 255 read, 255 unread)

【在 b****e 的大作中提到】
: statistically this is a small-probability event. how many users leave
: their boards with Ns scattered all over the place?
: this, by the way, is also known as run-length encoding

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。