I am creating a mobile service that requires a lot of search queries.
The service is based on a MySQL database, and a search query is not enough for a quick search.
So I decided to use an inverted indexing system:
index Documents
1 a, b, c, d, e, f, g, h
2 c, k, i, j, k
This is a simple design for an inverted indexing system.
I assume that in one line there will be more than a thousand documents.
I'm not sure what type and length I should use for the Documents column?
At the moment, I have chosen VARCHAR (100000). Is it possible to set the length as 9999999?
james source
share