8000 change query depending on field type by netelix · Pull Request #2 · kasaz/administrate · GitHub
[go: up one dir, main page]

Skip to content

change query depending on field type - #2

Merged
netelix merged 2 commits into
masterfrom
feature/optimize-search
Dec 12, 2019
Merged

netelix merged 2 commits into
masterfrom
feature/optimize-search

Conversation

@netelix
@netelix netelix commented Dec 12, 2019
Copy link
Copy Markdown

In order to speed up the search :

  • the LOWER sql method has been replaced by an ILIKE search
  • the CAST sql method is only done for Number fields

@mparramont mparramont left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! What I would do is run the administrate tests and see what happens, which break, etc, to understand if we're losing functionality and which one.

@mariozugaj
Copy link
Copy Markdown

Looks good to me! What I would do is run the administrate tests and see what happens, which break, etc, to understand if we're losing functionality and which one.

What he said.

@netelix
netelix merged commit 7920d7a into master Dec 12, 2019
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

Successfully merging this pull request may close these issues.

3 participants

0