All work

Contact search system for a property agency

Staff used to go back to the office and wait on a slow desktop program for every contact search. Now they search 52 million records from anywhere and get the answer in seconds.

Type
Client project
Years
2025 to now
Status
Live
Client
A property agency in Malaysia. Name withheld at their request.
Users
Agents search. Admins manage the databases, the uploads and the users.

Before

Contact search ran on a desktop program. Each search took a long time.

The program was not flexible. Staff could search only in the few ways it allowed.

It ran only in the office. An agent outside had to drive back, or call a colleague to search for them.

The agency set one requirement for the new system: an answer within a few seconds, across all 52 million records.

SEARCH   database: demo set A
----------------------------------------------
 name      tan         phone    012 555
 address   jln 7/7     leave out   taman
----------------------------------------------
 more than 10,000 matches           0.21 s
  1  TAN A.      012-555 0101   JALAN 7/7
  2  TAN B.      012-555 0102   JLN 7/7
  3  TANG C.     +60 12-555 0103  JLN 7/7
----------------------------------------------
 page 1    25 a page    sort: name
 searches left today              19,975
sample data

After

  • Search 52 million records and get the answer in seconds.
  • Search by a piece of a name, a phone number or an address. Combine them.
  • Search from anywhere with an internet connection, on a phone or a computer. No trip back to the office.
  • Add new records by uploading a spreadsheet.
  • See who searched for what, and when.

The screens.

From the demo build. The data is made up, and the client’s name, logo and colours are removed. Select a picture to open it at full size.

  • Search form filled with part of a name, part of a phone number and a street, above a table of matching contacts.
    Search by a piece of a name, a number and a street at once. Leave out what you do not want.sample data
  • A broad search with the message that more than 10,000 contacts match.
    A broad search still gives pages of results. The count stops at 10,000 and the pages keep turning.sample data
  • Database settings with the “New database” box open.
    An admin adds a new database on this screen. It stays hidden from agents until its files are in.sample data
  • File list with two imported spreadsheets, their row counts and the import log.
    Upload a spreadsheet and import it. The log shows each step and how many rows went in.sample data
  • Log of searches that shows what was searched, the result, the time taken and who searched.
    Every search is logged: what was typed, how many results, how long it took and who ran it.sample data

What we built

  • Search the way people type: a piece of a name, a phone number in any form, a street in its short or long spelling.
  • Narrow it down: several address boxes, a “leave out” box, sorting and a second filter on the results.
  • Databases on demand. An admin names a new one, and the system builds its table and search indexes by itself.
  • Spreadsheet import that copes with a messy file: it finds the headings and the columns by itself, and gets the addresses ready for search.
  • Access under control: three roles, device approval and search limits for each person.
  • Every search on record, with unusual patterns flagged for the admin.

How it works

Find any piece of a name
Staff rarely know the whole name or the full address. The search finds any piece of text, three letters or more. A special index does the work, so the database does not read every row.
One number, many ways to write it
0123456789, 12-345 6789 and +60 12-345 6789 are the same phone number. The system keeps a plain key for every number and searches on the key, so each way of writing it finds the others.
Addresses as people type them
Jln or Jalan. Lrg or Lorong. Kg or Kampung. The search tries both forms. Spaces and symbols are ignored, so a street written as 7/7 is still found.
Pages that stay fast
A broad search can match a huge number of records. The system counts up to 10,000 and then says “more than 10,000”. It keeps that count for 10 minutes, so the next page does not count again.
Under 10 seconds, and watched
The standard is an answer in under 10 seconds. Every search is timed and the slow ones are listed. Our team reads that list and tunes the system, without waiting for the client to ask.
A new database in one step
An admin names a new database. The system creates its table and its search indexes together. If any part fails, nothing is created. A database can stay hidden from agents until it is ready.
A messy spreadsheet is fine
A file does not need a tidy layout. The system finds the heading row, even under a title, and works out which column holds the name, the phone and the address. An admin can correct its guess, and the choice is remembered for the next file. Addresses need no cleaning first: spaces, symbols and short forms are sorted out for search. The import runs in the background, and if it fails halfway, the rows it added are removed.
Limits for each person
Each person has a limit per minute and a limit per day, and runs one search at a time. The limits are there to stop a script from copying the records.
Every search is logged
The log keeps who searched, from which device, what they typed and how long it took. An admin screen flags unusual patterns, such as many searches in a short time.
New devices need approval
First sign-in from a new phone or computer? An admin approves the device first. A stolen password alone does not get in.

Built with

  • Laravel
  • PHP
  • PostgreSQL
  • Angular
  • PrimeNG
  • Tailwind CSS
  • Azure DevOps
  • Cloudflare
Next projectCompany profile and website for a property agency

Tell us what slows your business down.

Send the problem. We reply with questions first, then a plan.