Re: Partitioning
Posted by: Ahmad Sakhi
Date: April 30, 2016 05:08PM

Rick,

This is the table that I am planning to create, for example. Making URI the primary key along with book_id.

As you recall, the SELECT is against URI field, which could return anywhere between say 5 to 1000 record. i.e.

SELECT score, start_cm, end_cm, text1, text2 FROM book_tbl WHERE uri='AB000010';




CREATE TABLE `mydb`.`book_tbl` (
`uri` VARCHAR(50) NOT NULL,
`book_id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
`score` FLOAT NOT NULL,
`uri_cm` VARCHAR(45) NOT NULL,
`start_cm` VARCHAR(45) NOT NULL,
`end_cm` VARCHAR(45) NOT NULL,
`text1` VARCHAR(500) NOT NULL,
`text2` VARCHAR(500) NOT NULL,
PRIMARY KEY (`uri`, `book_id`)
)
ENGINE = InnoDB;

Options: ReplyQuote


Subject
Written By
Posted
April 19, 2016 12:29PM
April 20, 2016 11:34PM
April 21, 2016 07:47AM
April 22, 2016 06:41PM
April 22, 2016 06:59PM
April 23, 2016 05:11PM
April 25, 2016 09:27AM
Re: Partitioning
April 30, 2016 05:08PM
May 04, 2016 11:41PM
May 09, 2016 09:18AM
May 10, 2016 10:15AM
May 11, 2016 08:11AM
May 17, 2016 07:49AM
May 23, 2016 03:21PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.