Associative table X Object type field

I have the following question.
I have a Contacts table and I want to be able to add various types of data (email and phone numbers) to the contact. The phone field ("value") will have many lookups.
"contactId": 1
"type" : "phone"
"value" : "+55891278917"
"contactId": 1
"type" : "phone"
"value" : "+55082738233"
"contactId": 1
"type" : "email"
"value" : [email protected]"
"contactId": 1
"type" : "phone"
"value" : "+551271892121"
What better way, create an associative table to register a contact's contact list or use an object type (type, telephone).
Field of type object cannot create index. For performance reasons what is the best option?
Answers
-
Hey @Mauro Mequelussi-40201 the GIN index can be leveraged to run indexed queries on objects and arrays… (Here's more info in our documentation)
Categories
- All Categories
- 46 📣 Announcements
- 47 🦾 Releases
- 36 👋 Welcome
- 924 🤷 Help! I'm a Noob
- 113 📱 No-Code Front-Ends
- 597 🌐 Working with APIs
- 418 🔢 Transforming data
- 120 🔌 Connect Xano to ...
- 46 🧑💻 Find an Expert
- 320 ❓Other questions
- 32 🔐 Security
- 22 ✂️ Snippets
- 19 🏆 Showcase
- 7 🗣️ Xano Chatter
- 60 📺 Video Tutorials
- 166 🙏 Request a feature
- 219 🐞 Report a Bug
- 19 🚀 Templates & Extensions
- 6 💬 Feedback