Created
September 5, 2010 10:06
-
-
Save saghul/565912 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE VIRTUAL TABLE enrondata1 USING fts3(content TEXT); /* FTS3 table */ | |
CREATE TABLE enrondata2(content TEXT); /* Ordinary table */ | |
SELECT count(*) FROM enrondata1 WHERE content MATCH 'linux'; /* 0.03 seconds */ | |
SELECT count(*) FROM enrondata2 WHERE content LIKE '%linux%'; /* 22.5 seconds */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment