Skip to content

Commit

Permalink
Optimization
Browse files Browse the repository at this point in the history
Make all 5-and-less-digits prefixes 6-digits to speed up search
  • Loading branch information
Ilya Chekalskiy committed Jul 3, 2018
1 parent c9da860 commit dc35b1b
Show file tree
Hide file tree
Showing 4 changed files with 247 additions and 64 deletions.
230 changes: 205 additions & 25 deletions db/bank_db.php
Original file line number Diff line number Diff line change
Expand Up @@ -11782,19 +11782,106 @@
480705 => 10,
480707 => 10,
480718 => 10,
48150 => 10,
48151 => 10,
48152 => 10,
48153 => 10,
48154 => 10,
48155 => 10,
48156 => 10,
48157 => 10,
481500 => 10,
481501 => 10,
481502 => 10,
481503 => 10,
481504 => 10,
481505 => 10,
481506 => 10,
481507 => 10,
481508 => 10,
481509 => 10,
481510 => 10,
481511 => 10,
481512 => 10,
481513 => 10,
481514 => 10,
481515 => 10,
481516 => 10,
481517 => 10,
481518 => 10,
481519 => 10,
481520 => 10,
481521 => 10,
481522 => 10,
481523 => 10,
481524 => 10,
481525 => 10,
481526 => 10,
481527 => 10,
481528 => 10,
481529 => 10,
481530 => 10,
481531 => 10,
481532 => 10,
481533 => 10,
481534 => 10,
481535 => 10,
481536 => 10,
481537 => 10,
481538 => 10,
481539 => 10,
481540 => 10,
481541 => 10,
481542 => 10,
481543 => 10,
481544 => 10,
481545 => 10,
481546 => 10,
481547 => 10,
481548 => 10,
481549 => 10,
481550 => 10,
481551 => 10,
481552 => 10,
481553 => 10,
481554 => 10,
481555 => 10,
481556 => 10,
481557 => 10,
481558 => 10,
481559 => 10,
481560 => 10,
481561 => 10,
481562 => 10,
481563 => 10,
481564 => 10,
481565 => 10,
481566 => 10,
481567 => 10,
481568 => 10,
481569 => 10,
481570 => 10,
48158 => 10,
481571 => 10,
481572 => 10,
481573 => 10,
481574 => 10,
481575 => 10,
481576 => 10,
481577 => 10,
481578 => 10,
481579 => 10,
481580 => 10,
481581 => 10,
481582 => 10,
481583 => 10,
481584 => 10,
481585 => 10,
481586 => 10,
481587 => 10,
48159 => 10,
481588 => 10,
481589 => 10,
481590 => 10,
481591 => 10,
481592 => 10,
481593 => 10,
481594 => 10,
481595 => 10,
481596 => 10,
481597 => 10,
481598 => 10,
481599 => 10,
481665 => 10,
481687 => 10,
481940 => 10,
Expand Down Expand Up @@ -16016,7 +16103,16 @@
518597 => 57,
518707 => 57,
529922 => 57,
42360 => 59,
423600 => 59,
423601 => 59,
423602 => 59,
423603 => 59,
423604 => 59,
423605 => 59,
423606 => 59,
423607 => 59,
423608 => 59,
423609 => 59,
670305 => 60,
428455 => 61,
636949 => 62,
Expand Down Expand Up @@ -16219,12 +16315,30 @@
404119 => 102,
404120 => 102,
404121 => 102,
49102 => 102,
491020 => 102,
491021 => 102,
491022 => 102,
491023 => 102,
491024 => 102,
491025 => 102,
491026 => 102,
491027 => 102,
491028 => 102,
491029 => 102,
519412 => 102,
519413 => 102,
520082 => 102,
520083 => 102,
53591 => 102,
535910 => 102,
535911 => 102,
535912 => 102,
535913 => 102,
535914 => 102,
535915 => 102,
535916 => 102,
535917 => 102,
535918 => 102,
535919 => 102,
552599 => 102,
558730 => 102,
622836 => 102,
Expand All @@ -16244,7 +16358,16 @@
418869 => 110,
427229 => 110,
447520 => 110,
46223 => 110,
462230 => 110,
462231 => 110,
462232 => 110,
462233 => 110,
462234 => 110,
462235 => 110,
462236 => 110,
462237 => 110,
462238 => 110,
462239 => 110,
465206 => 110,
471487 => 110,
522598 => 110,
Expand Down Expand Up @@ -16272,7 +16395,16 @@
426113 => 115,
428905 => 115,
428906 => 115,
45841 => 115,
458410 => 115,
458411 => 115,
458412 => 115,
458413 => 115,
458414 => 115,
458415 => 115,
458416 => 115,
458417 => 115,
458418 => 115,
458419 => 115,
477964 => 115,
479004 => 115,
479087 => 115,
Expand Down Expand Up @@ -16365,7 +16497,16 @@
427642 => 134,
427644 => 134,
427648 => 134,
42765 => 134,
427650 => 134,
427651 => 134,
427652 => 134,
427653 => 134,
427654 => 134,
427655 => 134,
427656 => 134,
427657 => 134,
427658 => 134,
427659 => 134,
427660 => 134,
427663 => 134,
427664 => 134,
Expand All @@ -16386,18 +16527,45 @@
427940 => 134,
427955 => 134,
533669 => 134,
54690 => 134,
546900 => 134,
546901 => 134,
546902 => 134,
546903 => 134,
546904 => 134,
546905 => 134,
546906 => 134,
546907 => 134,
546908 => 134,
546909 => 134,
546910 => 134,
546916 => 134,
546917 => 134,
546918 => 134,
54693 => 134,
546930 => 134,
546931 => 134,
546932 => 134,
546933 => 134,
546934 => 134,
546935 => 134,
546936 => 134,
546937 => 134,
546938 => 134,
546939 => 134,
546940 => 134,
546942 => 134,
546944 => 134,
546945 => 134,
546949 => 134,
54695 => 134,
546950 => 134,
546951 => 134,
546952 => 134,
546953 => 134,
546954 => 134,
546955 => 134,
546956 => 134,
546957 => 134,
546958 => 134,
546959 => 134,
546960 => 134,
546962 => 134,
546967 => 134,
Expand All @@ -16410,7 +16578,15 @@
548438 => 134,
639002 => 134,
676196 => 134,
67758 => 134,
677580 => 134,
677581 => 134,
677582 => 134,
677583 => 134,
677584 => 134,
677586 => 134,
677587 => 134,
677588 => 134,
677589 => 134,
534134 => 135,
442355 => 136,
468236 => 136,
Expand All @@ -16430,7 +16606,6 @@
451873 => 137,
456301 => 137,
456319 => 137,
481537 => 137,
483515 => 137,
515352 => 137,
517357 => 137,
Expand Down Expand Up @@ -16512,7 +16687,6 @@
462410 => 144,
463781 => 144,
469531 => 144,
481509 => 144,
492496 => 144,
498713 => 144,
515709 => 144,
Expand Down Expand Up @@ -16815,8 +16989,16 @@
492010 => 183,
497874 => 184,
513625 => 185,
49735 => 186,
497350 => 186,
497351 => 186,
497352 => 186,
497353 => 186,
497354 => 186,
497355 => 186,
497356 => 186,
497357 => 186,
497358 => 186,
497359 => 186,
497203 => 187,
497958 => 188,
513616 => 189,
Expand Down Expand Up @@ -19171,6 +19353,4 @@
'color' => '#4285f4',
),
),
'min_length' => 5,
'max_length' => 6,
);
Loading

0 comments on commit dc35b1b

Please sign in to comment.