Aller au contenu

Leçon 22 · Sharing, Performance and Debugging

Performance and the AMP Engine

Make Alteryx workflows faster by filtering early, trimming columns, profiling tools and understanding how the AMP engine differs from the original engine.

A workflow that takes ten seconds is pleasant. One that takes two hours delays everyone who waits for it. Performance work is mostly about moving and processing less data, and about measuring before you change anything.

This lesson covers the engine, profiling and practical habits.

Measure first

Do not guess which step is slow. Designer has a performance profiling option in the workflow configuration's runtime settings. After you run, the Results window shows how long each tool took. The help warns that profiling itself can slow a run, so use it for investigation, then turn it off.

Profiling results from the original engine and the AMP engine should not be compared directly, because they measure work differently. Compare runs on the same engine.

Change one thing at a time and record the time before and after. Run more than once, because caches and other programs affect timing.

The AMP engine

Alteryx has two engines. The original engine processes records one at a time, mostly in sequence. AMP is a multi-threaded engine that works on blocks of data in parallel. As of 2026.2, AMP is the default for new workflows.

Important differences:

  • Record order can differ with AMP for some tools. If order matters, sort explicitly. Designer has an Engine Compatibility Mode that keeps order closer to the old engine, usually at some cost in speed.
  • Some behavior can differ, for example around errors inside iterative macros.
  • AMP can use more memory or disk (when it "spills" data that does not fit in memory).

If you move an old workflow to AMP, compare its outputs. Alteryx offers an Engines Parity Utility that runs both engines side by side for this purpose.

Python Stand-in: never rely on the arrival order of rows

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The simulation shuffles the batches at random. The arrival order can change from run to run, while the sorted result stays the same.

Reduce data early

The most effective habits:

  1. Select early. Drop columns you do not need, especially wide text fields.
  2. Filter early. Remove irrelevant rows before joins, sorts and formulas.
  3. Summarize before joining if you only need totals.
  4. Push work to the database with In-DB tools or a good query.
  5. Choose sensible types. Very large text sizes and wasteful types cost memory.
Python Stand-in: filtering before a join shrinks the work

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Real join algorithms are smarter than this, but the principle holds: less input means less work.

Other common slowdowns

Cause Remedy
Many Browse tools Remove or disable them in production runs
Unnecessary Sort Sort only where order is needed
Row-by-row loops or batch macros Replace with a join or an aggregation
Reading large CSV repeatedly Convert once to .yxdb for reuse
Web calls per row Batch requests and respect limits
Network file locations Check the connection speed; copy a working file if allowed

Memory and temporary files

Sorting, joining and summarizing may need temporary disk space when data does not fit in memory. Check available disk space and the engine's memory settings, and ask your administrator before changing shared server settings. More memory per workflow may reduce how many workflows a shared machine can run together.

Developing efficiently

While building:

  • Use a record limit or a sample, and remember to remove it.
  • Use cache and run for slow early steps.
  • Disable output tools during experiments.

For scheduled production runs, remove profiling and unnecessary Browse tools, and keep logs.

A tuning checklist

  1. Profile and list the three slowest tools.
  2. Ask whether their input is larger than needed.
  3. Try the database, a smarter aggregation or a different order of steps.
  4. Re-run and compare both speed and output.
  5. Document what changed and why.

A faster workflow that returns a different answer is not an improvement. Compare counts and control totals after every optimization.

Development speed is performance too

The time you wait while building also counts. Work with a small, representative sample while you design the logic, then test the full volume before release. A representative sample includes the awkward cases, not only the first thousand rows, which may all come from one month or one region.

Test with realistic volume before a deadline. Some designs work well with thousands of rows and fail with millions, for example an accidental cross join or a text field that is far wider than needed. If the data will grow, estimate the size a year from now, and note what should be checked when run time increases.

Practice task

Take any workflow that you built in this course and list its tools in order. Next to each one, estimate how many rows and columns enter it. Mark every place where you could remove columns or rows earlier without changing the result.

If you have Designer, turn on performance profiling, run the workflow with a larger test file and compare the timings with your guess. Make one change, run again on the same engine and verify that the output is unchanged by comparing counts and totals. Write down the before and after times. With very small data, timing differences may be mostly noise, so say so when that happens.

Common mistakes

  • Tuning a tool that takes 1 percent of the time.
  • Assuming a new engine produces identical row order.
  • Leaving test limits in production.
  • Optimizing so aggressively that the workflow becomes unreadable.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What should you do before optimizing a workflow?

    Profiling shows where effort will pay off.
  2. 2. Which statement about the AMP engine is correct?

    Parallel processing means you should sort explicitly when order matters.
  3. 3. Which habit usually gives the biggest improvement?

    Moving less data reduces work in all later tools.
  4. 4. What must you check after speeding up a workflow?

    Correctness comes before speed.

Summary

  • Profile first, then change one thing at a time.
  • AMP is parallel and the default for new workflows since 2026.2; sort when order matters.
  • Reduce rows and columns early and use the database where possible.
  • Verify outputs after every change.

Next: Reporting, Sharing and Scheduling

Votre progression est enregistrée dans ce navigateur. Aucun compte nécessaire.