Update README.md
Browse files
README.md
CHANGED
@@ -44,12 +44,12 @@ So I use a custom TextField to store ids of tags belongs to a Post.
|
|
44 |
The basic idea is to use 2 unique symbol for start/end of the number. And use 36-base number<br>
|
45 |
(python support converting n-base number into integer natively, numpy have utils to convert integer into n-base number)
|
46 |
|
47 |
-
I use $xxx# format, so when you want to utilize the FTS table to search tag_list, use
|
48 |
|
49 |
For example:<br>
|
50 |
The code in profiling.py use $6KMR# which is 306675 under base-36.<br>
|
51 |
So the profiling.py is doing "fetch all the Post object which have 'umamusume' tag in their tag list"<br>
|
52 |
-
**If you can ensure the tag type, you can specific the tag_list_
|
53 |
|
54 |
## Profiling
|
55 |
A test script for showing why I use FTS.
|
|
|
44 |
The basic idea is to use 2 unique symbol for start/end of the number. And use 36-base number<br>
|
45 |
(python support converting n-base number into integer natively, numpy have utils to convert integer into n-base number)
|
46 |
|
47 |
+
I use $xxx# format, so when you want to utilize the FTS table to search tag_list, use $\<36-base number\># to find if the tag is in the tag-list.
|
48 |
|
49 |
For example:<br>
|
50 |
The code in profiling.py use $6KMR# which is 306675 under base-36.<br>
|
51 |
So the profiling.py is doing "fetch all the Post object which have 'umamusume' tag in their tag list"<br>
|
52 |
+
**If you can ensure the tag type, you can specific the tag_list_\<type\> instead of full tag_list for more efficiency**
|
53 |
|
54 |
## Profiling
|
55 |
A test script for showing why I use FTS.
|