The Knowledge Graph Conference Icon
The Knowledge Graph Conference
  • 🏠Home
  • 📅Events
  • 👤Members
  • 🔵Announcements
  • 🔵Ask
  • 🔵Ask The Ontologists
  • 🔵Events
  • 🔵Jobs
  • 🔵Promotions
  • 🔵Share
Powered by Tightknit
Ask
Ask

Tools for Profiling and Optimizing SPARQL Queries in Neptune

Avatar of Avy FaingezichtAvy Faingezicht
·Nov 04, 2022 05:14 PM

What are some tools you have used before to successfully profile and optimize SPARQL queries? We’re using Neptune, and hoping to measure where our bottlenecks are. cc nabeel, Ora L.

🤔1

5 comments

· Sorted by Oldest
  • Avatar of Bob DuCharme
    Bob DuCharme
    ·

    Avoiding the OPTIONAL keyword is a big help for optimizing (see https://www.bobdc.com/blog/dropping-optional-blocks-from/). Otherwise, profiling and optimization tricks are usually specific to the SPARQL engine that you are using. It's one of the ways they distinguish themselves from each other. So, contacting Neptune folk or searching for online material on Neptune optimization is probably your best bet.

  • Avatar of Tomasz P.
    Tomasz P.
    ·

    I expect vendor would have some query plan feature. Stardog and AllegroGraph can show that which is sometimes helpful in determining the slow parts of a query

  • Avatar of Martynas J.
    Martynas J.
    ·

    https://docs.aws.amazon.com/neptune/latest/userguide/sparql-explain.html

  • Avatar of Ora L.
    Ora L.
    ·

    The “explain” feature in Neptune is basically the first step. It can sometimes be a bit hard to read its output. Let us know if we (the Neptune team) can help.

  • Avatar of Avy Faingezicht
    Avy Faingezicht
    ·

    Thanks for the pointers folks! We’ll do some digging, and might come back with specific questions