Hello! Looking for some advice here!
I wanted to create a a filter in aggregate where when the SearchKeyword is "John doe" it will return all of the following results:
I know there are a few approach to achieve this:
But will these cause problems if there are a lot of records in the entity? Which one is the best way to achieve this? I've looked into creating a functional index on the entity but I'm not sure how to implement that.
Thanks beforehand!
Hi @StillLearning ,
As per Outsystems best practicies and documents the aggregates are optimized at the background and gives the result.
I have tried practically with 35K records and it was working smooth for me.
I dont know how much you have in your db.
Thanks and happy cooding
Reagrds,
Amreen
@StillLearning
Performing a SQL replace operation on 50,000 records should not cause any significant performance issues.
However, if you still have concerns about performance, you can consider adding an additional field to the entity that stores the same data but without any whitespace characters. You can then use this field for searching the records, which should provide faster search results.
Please refer :
https://www.outsystems.com/forums/discussion/59812/aggregate-like-operator-search-for-words-even-if-not-sequencial/
Content.Title like "%" + Replace(Session.Content_SearchKeyword, " ", "%") + "%" this syntax should work.
Hi Amreen Shaikh,
Thanks for reaching out! I've read through the link you posted and tried it out. While it does do the job, my concern is whether it will cause performance issue when the entity grow into having ten thousands or even more of records? I'm sorry as it seems I didn't phrase my question properly before.
Best regards,StillLearning