Associative table X Object type field
![mauromequelussi](https://us.v-cdn.net/6037124/uploads/userpics/LE9FA7GMAN3U/nHAQX35BAVQDE.png)
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" : test@gmail.com"
"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
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback