Does presence of “|” [Bitwise Or] in query PARAM value have impact on performance Java Hibernate

Solution for Does presence of “|” [Bitwise Or] in query PARAM value have impact on performance Java Hibernate
is Given Below:

Recently I encountered a strange issue where I had a table called person which has columns personid, name, age, username, …

There are around 200 entries for username which as ‘|’ in value.
i.e. for ex :

1] abc | def  
2] mno | pqr 

and so on.

I Have return an Spring Boot based Rest API which deletes person based on username but I am observing that the API takes more than expected time when we try to delete person whose username value has “|” in it.
i.e. time taken to delete 10 records for username with “|” is app 10 mins but the usernames without “|” values takes process transaction with in 4 min.

I tried to google a lot to find the impact of it but could not find any corresponding proof on it causing performance issue. Hence I am reaching out here .

Query used:

select * from person where username = trim (:name)

API Details:

Takes List of Usernames to be deleted or inactivated as input and have some set of basic validation before performing delete.