Best Of
Re: NEW COMMUNITY COACH: @david_cunningham 🔥🥳
Congrats on the achievement @david_cunningham and thanks for all the insightful contributions to the Community Forums!
Python Requests Library in Codeengine
Hello,
I have started using the codeengine to create API calls to automate some of our tasks with systems outside of Domo. Python is my primary language and I have noticed that I have not been able to find documentation on making the calls with python.
I know there is support for calls using JavaScript and I have been successful using them. So now I am curious if anyone has had luck making the calls using python and if so how.
Re: Data Structure Issue
For those dealing with bad data, here is a video that goes over various ways to clean it up:
Re: Data Structure Issue
Note for anyone reading this thread. I believe Grant's solution will also work. But I did not test it. As Mark mentioned, TRY_CAST does appear to be working in the ETL. And that's where I want it happening so my issue is solved.
Thank you both @MarkSnodgrass , @GrantSmith .
Re: How to omit values from a field if it contains a letter inside it
CASE WHEN `ItemName` LIKE '%A%' OR `ItemName` LIKE '%B%' OR `ItemName` LIKE '%C%' OR `ItemName` LIKE '%P%' THEN 'Ignore' ELSE 'Keep' END
You can use the LIKE statement to see if your string contains other characters. Alternatively you can use a REGEXP_REPLACE in Magic ETL formula tile:
CASE WHEN REGEXP_LIKE(`ItemName`, '[ABCP]') THEN 'Keep' ELSE 'Ignore' END
Re: How to omit values from a field if it contains a letter inside it
If those are the only letters that will appear in the values of that field you could create a beastmode:
CASE WHEN `ItemNumber` LIKE '%A%' OR `ItemNumber` LIKE '%B%' OR `ItemNumber` LIKE '%C%' OR `ItemNumber` LIKE '%P%' THEN 'Out' ELSE 'In' END
Re: Indexing Help
You don't need to explicitely create indexes as you would in traditional databases. Domo's automatically optimizes for performance. Slow performance may be due to complexity of the dashboard or an issue in how you have things structured.
Re: Indexing Help
One thing I always take into account when designing ETL Pipelines is to be a teapot - short and stout. What I mean is that you can filter the data as soon as you're able to and also selecting only the columns you need. This makes the data short and faster to process as there's less data. On the stout side of the coin, you'll want to make sure you do as many things in parallel when processing the data as possible. Instead of chaining joins together join other tables together as you can so multiple joins are happening at the same time. This will allow the parallelism to work efficiently and not have your pipeline waiting on steps slowing things down.




