Skip to content

Commit

Permalink
Implementation of no5
Browse files Browse the repository at this point in the history
  • Loading branch information
georgegg committed May 17, 2012
1 parent 950da35 commit 1e10d1a
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions README.md
Expand Up @@ -89,12 +89,13 @@ This query will need approximately an hour to execute and the table will have 6M
Since the queries will be executed mainly on that table, once you create the page_relation table, you will want to create indexes on all attributes

<pre>
<<<<<<< HEAD
CREATE INDEX ix_stitle
ON page_relation (stitle)
CREATE INDEX ix_stitle ON ipeirotis.page_relation (stitle)

CREATE INDEX ix_ttitle
ON page_relation (ttitle)
CREATE INDEX ix_ttitle ON ipeirotis.page_relation (ttitle)

CREATE INDEX ix_sid ON ipeirotis.page_relation (sid)

CREATE INDEX ix_tid ON ipeirotis.page_relation (tid)
</pre>

Note
Expand All @@ -115,15 +116,6 @@ FROM
</pre>

returns very few results, which are already fixed in the actual Wikipedia (so there seems to be an automatic process that fixes that part)
=======
CREATE INDEX ix_stitle ON ipeirotis.page_relation (stitle)

CREATE INDEX ix_ttitle ON ipeirotis.page_relation (ttitle)

CREATE INDEX ix_sid ON ipeirotis.page_relation (sid)

CREATE INDEX ix_tid ON ipeirotis.page_relation (tid)
</pre>


5, For this part of the project we created a mini platform with 2 actions (search and ajax).
Expand All @@ -145,4 +137,3 @@ SELECT * FROM page_relation WHERE (stitle = 'TERM' OR ttitle = 'TERM') AND sname

SELECT * FROM page_relation WHERE tid IN ARRAY_OF_BASE_PAGE_IDS_FROM_ITERATION;
</pre>
>>>>>>> Implementation of no5

0 comments on commit 1e10d1a

Please sign in to comment.