Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3309506
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:38:56+00:00 2026-05-17T21:38:56+00:00

Our application provides multiple query interfaces that are basically just text inputs. Is there

  • 0

Our application provides multiple query interfaces that are basically just text inputs. Is there a best practice on whether the backend logic should be pad the query parameter with wildcards then perform a like or should it just do an equals. Of course another option would be to allow user’s to use wildcards and then check and use a “like” if appropriate.

I understand the performance implication of using a wildcard like this and that this could be viewed as a subject question, I just want to know if there is a standard practice.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T21:38:57+00:00Added an answer on May 17, 2026 at 9:38 pm

    This is something I would leave up to the user, allowing then to actually make a choice. All the UIs I’ve seen for allowing user-specified conditions have:

    • the column to check.
    • a drop-down box containing the relationship, such as equal to, not equal to, less than, greater than, starts with.
    • the value you want to compare to.

    Then, for the starts with option, you just tack on % and use like.

    You’ll note (for performance reasons which you seem to already understand) I used starts with rather than like to limit the possibility of dragging down the database performance.

    I’m not a big fan of unrestricted like statements although you could also provide ends with for those DBMS’ capable of storing reversed indexes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a new web-based financial application for our company that provides online real-time
Our application stores records with shorter texts (strings of 100-1000 characters). It provides search
Our application is a Java-GWT application that uses Guice-Persist and Guice-Servlet extensively. We have
Our application takes text from a web form and sends it via email to
Our application has many controls that are created dynamically. For example, a navigation pane
We are using a pub-sub model in our WCF application that pretty much follows
I have a web application that our product owner has stated must respond within
I have a Android application which provides in-app billing and we have our application
Our application is a Windows client (C++/MFC migrating to C#) that uses SQL Server
To create facebook android native app we need to provide our Android application signature

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.