Blog

Processing Upstream Deletes

  • 28 January, 2021
  • By Dave Cassel

We can load data into a data hub from a variety of upstream data sources. What if we want to delete documents that have been deleted upstream? In the ideal case we’re using a Change Data Capture system and we get notifications about those deletions, but sometimes we don’t have that. How can we detect […]

Read More


Working with JSON in XQuery

  • 6 October, 2020
  • By Dave Cassel

MarkLogic supports XQuery and JavaScript as native languages. XQuery is a very natural way to work with XML, just as JavaScript is a very natural way to work with JSON. However, sometimes it’s useful to cross over and work with JSON using XQuery or vice versa. This post has some tips on using XQuery to […]

Read More


Searching for One Result

  • 28 September, 2020
  • By Dave Cassel

MarkLogic is both a database and a search engine. Sometimes, you know you only want one result from your search. What’s a good way to do that? Using MarkLogic’s Server-side JavaScript, here’s one way to do it: const query = …; // foreshadowing — there’s a better way! cts.search(query).toArray().slice(0, 1) We get the results of […]

Read More


MarkLogic Universal and Range Indexes

  • 28 February, 2020
  • By Dave Cassel

In NiFi, FlowFiles are pieces of data that a processor needs to work on. In this case, NiFi is calling a MarkLogic query for each FlowFile. The metric shown in the graph is FlowFiles processed by NiFi over 5 minute intervals. There are peaks around 16,000, but mostly lower, which wasn’t the throughput I needed. […]

Read More


cta-bg

Ready to Chat?

Book your 30-minute Technology Clarity Call. I offer a free, no-obligation consultation to learn about your business and explore whether a Fractional CTO engagement is the right fit.