Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Get unique values from field across DOM instances

Solved552 views5th July 2023DOM
2
Wouter Bogaert [SLC] [DevOps Advocate]969 4th May 2023 0 Comments

Hi,

I have a lot of DOM instances and I would like to be able to get a unique list of values from one specific field.

As an example, let’s say I have DOM instances representing a food order in a restaurant. One of the fields is the waiter that took the order.

Now in this example I would like to get a list of all unique waiters across all orders.

Should I just get all orders and extract the waiters from that or is there a better way to accomplish this, as I don’t know what the performance impact will be over time when the number of orders grows.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 5th July 2023

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Martijn Vanallemeersch [SLC] [DevOps Member]953 Posted 4th May 2023 3 Comments

Hi Wouter I would just create a query that does a group by “Waiter” in your case as this is stored in elastic this should be a quite fast operation

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 5th July 2023
Sebastiaan Dumoulein [SLC] [DevOps Enabler] commented 5th May 2023

This will indeed get you the correct result, although I don’t believe aggregations are already optimized for DOM instances. This means that aggregating will be done in GQI and it will fetch all instances in the background.

Wouter Bogaert [SLC] [DevOps Advocate] commented 8th May 2023

I’m actually doing this in code, and am able to get the unique waiters like this:
DomHelper.DomInstances.Read(filter).DistinctBy(order => order.waiter);
So, to finetune my question, is the DistinctBy doing the select pre or post fetch?
As I would prefer a pre fetch, similar like a ‘distinct’ in eg MySQL querying.

Peter Vanpoucke [SLC] [DevOps Advocate] commented 8th May 2023

hi Wouter, the DistinctBy will kick in post fetch I’m afraid.

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs