This link has been bookmarked by 452 people . It was first bookmarked on 02 Mar 2006, by Joel Liu.
-
03 Sep 15
-
30 Aug 15
-
27 Nov 12
-
18 Nov 12
-
02 Aug 12
-
08 Jul 12
-
01 Apr 12
-
14 Mar 12
-
12 Mar 12
-
06 Mar 12
-
31 Jan 12
-
11 Jan 12
-
05 Jan 12
-
01 Nov 11
-
17 Sep 11
-
22 Aug 11
-
15 Aug 11
-
09 Jun 11
-
=====================
Site-Party–Tag
=====================
site_id
party_id
tag_id
=====================
-
-
06 Jun 11
-
25 May 11
-
22 May 11
-
19 May 11
-
MySQLicious” solution
-
“Scuttle” solution
-
“Toxi” solution
-
07 Apr 11
-
05 Mar 11
-
30 Jan 11
-
29 Jan 11
-
28 Jan 11
-
15 Jan 11
Imke Gideonse3 voorbeelden van tags gebruiken in een database. Namelijk in 1, 2 of 3 tabellen.
-
24 Dec 10
-
14 Dec 10
-
09 Dec 10
-
24 Nov 10
-
18 Nov 10
-
17 Nov 10
-
30 Oct 10
-
05 Oct 10
-
26 Aug 10
-
16 Aug 10
-
06 Aug 10
-
04 Aug 10
-
29 Jul 10
-
06 Jul 10
-
02 Jul 10
-
30 Jun 10
-
24 Jun 10
-
03 Jun 10
-
16 May 10
-
18 Apr 10
-
31 Mar 10
-
23 Mar 10
-
27 Feb 10
-
25 Feb 10
-
06 Feb 10
-
05 Feb 10
-
04 Jan 10
-
28 Dec 09
-
21 Dec 09
-
19 Nov 09
-
17 Nov 09
-
23 Oct 09
-
17 Oct 09
-
14 Oct 09
-
18 Sep 09
-
10 Sep 09
-
26 Aug 09
-
20 Aug 09
-
12 Aug 09
-
25 Jul 09
-
16 Jul 09
-
10 Jul 09
-
17 Jun 09
-
18 May 09
-
15 May 09
-
07 May 09
-
01 May 09
-
26 Apr 09
-
07 Apr 09
-
20 Mar 09
-
18 Mar 09
-
05 Mar 09
-
27 Feb 09
-
- Run a query for each tag appearing in your “tag-query”:
SELECT b.id FROM tagmap bt, bookmark b, tag t WHERE bt.tag_id = t.tag_id AND b.id = bt.bookmark_id AND t.name = "semweb" - Put each id-set from the result into an array (that is: in your favourite coding language). You could cache this arrays if you want..
- Constrain the arrays with union or intersection or whatever.
If you want to have more complicated queries like (bookmarks OR bookmark) AND (webservice or WS) AND NOT (semweb or semanticweb) the queries tend to become very complicated. In these cases I suggest the following query/computation process:
In this way, you can also do queries like
(del.icio.us|delicious)+(semweb|semantic_web)-search. This type of queries (that is: the brackets) cannot be done by using the denormalized “MySQLicious solution”.
This is the most flexible data structure and I guess it should scale pretty good (that is: if you do some caching). - Run a query for each tag appearing in your “tag-query”:
-
-
23 Feb 09
-
15 Feb 09
-
13 Feb 09
-
15 Jan 09
-
07 Jan 09
-
24 Dec 08
-
17 Dec 08
-
05 Dec 08
-
16 Nov 08
-
11 Nov 08
-
21 Oct 08
-
12 Oct 08
-
09 Oct 08
-
07 Oct 08
Page Comments
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.