Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error! when has too many variableRoutes #88

Open
bigson opened this issue Jul 28, 2018 · 0 comments
Open

Error! when has too many variableRoutes #88

bigson opened this issue Jul 28, 2018 · 0 comments

Comments

@bigson
Copy link

bigson commented Jul 28, 2018

I dump getData() my router, and variableRoutes has over 30 router. if default APPROX_CHUNK_SIZE = 10 so my router is run wrong. But i set APPROX_CHUNK_SIZE = 50 it run correct.

This is my router correct:

-variableRoutes: array:1 [▼ 0 => array:2 [▼ "regex" => "~^(?|([a-zA-Z0-9+_\-\.]+)\-pr([0-9]+)|nha\-dat\-ban\-([a-z0-9\-]+)(\/[a-z0-9\-\/]+)?()|nha\-dat\-ban(\/[a-z0-9\-\/]+)?()()()|nha\-dat\-cho\-thue\-([a-z0-9\-]+)(\/[a-z0-9\-\/]+)?()()()|nha\-dat\-cho\-thue(\/[a-z0-9\-\/]+)?()()()()()|ban\-dat\-nen\-du\-an\-([a-z0-9\-]+)(\/[a-z0-9\-\/]+)?()()()()()|ban\-dat\-nen\-du\-an(\/[a-z0-9\-\/]+)?()()()()()()()|ban\-nha\-rieng\-([a-z0-9\-]+)(\/[a-z0-9\-\/]+)?()()()()()()()|ban\-nha\-rieng(\/[a-z0-9\-\/]+)?()()()()()()()()()|ban\-trang\-trai\-khu\-nghi\-duong\-([a-z0-9\-]+)(\/[a-z0-9\-\/]+)?()()()()()()()()()|ban\-trang\-trai\-khu\-nghi\-duong(\/[a-z0-9\-\/]+)?()()()()()()()()()()()|ban\-kho\-nha\-xuong\-([a-z0-9\-]+)(\/[a-z0-9\-\/]+)?()()()()()()()()()()()|ban\-kho\-nha\-xuong(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()|ban\-loai\-bat\-dong\-san\-khac\-([a-z0-9\-]+)(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()|ban\-loai\-bat\-dong\-san\-khac(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()|ban\-nha\-mat\-pho\-([a-z0-9\-]+)(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()|ban\-nha\-mat\-pho(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()|ban\-dat\-([a-z0-9\-]+)(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()|ban\-dat(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()|ban\-can\-ho\-chung\-cu\-([a-z0-9\-]+)(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()|ban\-can\-ho\-chung\-cu(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()()()|ban\-nha\-biet\-thu\-lien\-ke\-([a-z0-9\-]+)(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()()()|ban\-nha\-biet\-thu\-lien\-ke(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()()()()()|cho\-thue\-van\-phong\-([a-z0-9\-]+)(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()()()()()|cho\-thue\-van\-phong(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()()()()()()()|cho\-thue\-nha\-mat\-pho\-([a-z0-9\-]+)(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()()()()()()()|cho\-thue\-nha\-mat\-pho(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()()()()()()()()()|cho\-thue\-nha\-rieng\-([a-z0-9\-]+)(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()()()()()()()()()|cho\-thue\-nha\-rieng(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()()()()()()()()()()()|cho\-thue\-kho\-nha\-xuong\-dat\-([a-z0-9\-]+)(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()()()()()()()()()()()|cho\-thue\-kho\-nha\-xuong\-dat(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()|cho\-thue\-cua\-hang\-ki\-ot\-([a-z0-9\-]+)(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()|cho\-thue\-cua\-hang\-ki\-ot(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()|cho\-thue\-nha\-tro\-phong\-tro\-([a-z0-9\-]+)(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()|cho\-thue\-nha\-tro\-phong\-tro(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()|cho\-thue\-loai\-bat\-dong\-san\-khac\-([a-z0-9\-]+)(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()|cho\-thue\-loai\-bat\-dong\-san\-khac(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()|cho\-thue\-can\-ho\-chung\-cu\-([a-z0-9\-]+)(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()|cho\-thue\-can\-ho\-chung\-cu(\/[a-z0-9\-\/]+)?()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()())$~ ◀" "routeMap" => array:39 [▶] ] ]

and if set APPROX_CHUNK_SIZE = 10

'-variableRoutes: array:4 [▼
0 => array:2 [▼
"regex" => "^(?|([a-zA-Z0-9+_-.]+)-pr([0-9]+)|nha-dat-ban-([a-z0-9-]+)(/[a-z0-9-/]+)?()|nha-dat-ban(/[a-z0-9-/]+)?()()()|nha-dat-cho-thue-([a-z0-9-]+)(/[a-z0-9-/]+)?()()()|nha-dat-cho-thue(/[a-z0-9-/]+)?()()()()()|ban-dat-nen-du-an-([a-z0-9-]+)(/[a-z0-9-/]+)?()()()()()|ban-dat-nen-du-an(/[a-z0-9-/]+)?()()()()()()()|ban-nha-rieng-([a-z0-9-]+)(/[a-z0-9-/]+)?()()()()()()()|ban-nha-rieng(/[a-z0-9-/]+)?()()()()()()()()()|ban-trang-trai-khu-nghi-duong-([a-z0-9-]+)(/[a-z0-9-/]+)?()()()()()()()()())$ ◀"
"routeMap" => array:10 [▶]
]
1 => array:2 [▼
"regex" => "^(?|ban-trang-trai-khu-nghi-duong(/[a-z0-9-/]+)?|ban-kho-nha-xuong-([a-z0-9-]+)(/[a-z0-9-/]+)?|ban-kho-nha-xuong(/[a-z0-9-/]+)?()()|ban-loai-bat-dong-san-khac-([a-z0-9-]+)(/[a-z0-9-/]+)?()()|ban-loai-bat-dong-san-khac(/[a-z0-9-/]+)?()()()()|ban-nha-mat-pho-([a-z0-9-]+)(/[a-z0-9-/]+)?()()()()|ban-nha-mat-pho(/[a-z0-9-/]+)?()()()()()()|ban-dat-([a-z0-9-]+)(/[a-z0-9-/]+)?()()()()()()|ban-dat(/[a-z0-9-/]+)?()()()()()()()()|ban-can-ho-chung-cu-([a-z0-9-]+)(/[a-z0-9-/]+)?()()()()()()()())$ ◀"
"routeMap" => array:10 [▶]
]
2 => array:2 [▼
"regex" => "^(?|ban-can-ho-chung-cu(/[a-z0-9-/]+)?|ban-nha-biet-thu-lien-ke-([a-z0-9-]+)(/[a-z0-9-/]+)?|ban-nha-biet-thu-lien-ke(/[a-z0-9-/]+)?()()|cho-thue-van-phong-([a-z0-9-]+)(/[a-z0-9-/]+)?()()|cho-thue-van-phong(/[a-z0-9-/]+)?()()()()|cho-thue-nha-mat-pho-([a-z0-9-]+)(/[a-z0-9-/]+)?()()()()|cho-thue-nha-mat-pho(/[a-z0-9-/]+)?()()()()()()|cho-thue-nha-rieng-([a-z0-9-]+)(/[a-z0-9-/]+)?()()()()()()|cho-thue-nha-rieng(/[a-z0-9-/]+)?()()()()()()()()|cho-thue-kho-nha-xuong-dat-([a-z0-9-]+)(/[a-z0-9-/]+)?()()()()()()()())$ ◀"
"routeMap" => array:10 [▶]
]
3 => array:2 [▼
"regex" => "^(?|cho-thue-kho-nha-xuong-dat(/[a-z0-9-/]+)?|cho-thue-cua-hang-ki-ot-([a-z0-9-]+)(/[a-z0-9-/]+)?|cho-thue-cua-hang-ki-ot(/[a-z0-9-/]+)?()()|cho-thue-nha-tro-phong-tro-([a-z0-9-]+)(/[a-z0-9-/]+)?()()|cho-thue-nha-tro-phong-tro(/[a-z0-9-/]+)?()()()()|cho-thue-loai-bat-dong-san-khac-([a-z0-9-]+)(/[a-z0-9-/]+)?()()()()|cho-thue-loai-bat-dong-san-khac(/[a-z0-9-/]+)?()()()()()()|cho-thue-can-ho-chung-cu-([a-z0-9-]+)(/[a-z0-9-/]+)?()()()()()()|cho-thue-can-ho-chung-cu(/[a-z0-9-/]+)?()()()()()()()())$ ◀"
"routeMap" => array:9 [▶]
]
]'

please help me explain that! thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant