Help

Very slow api requests

240 2
cancel
Showing results for 
Search instead for 
Did you mean: 
toffu
4 - Data Explorer
4 - Data Explorer

I'm seeing very slow requests when fetching a single record from a table with 4 records.

Very slow as in more than a minute.

What am I doing wrong?

2 Replies 2

Hello @toffu 

Please include more details like which programming language you're using. Which library are you using and what are the specific codes for fetching records from your table?
Just share a screenshot or code of it.

Just make sure you hide all sensitive information.

toffu
4 - Data Explorer
4 - Data Explorer

Thank you, sure.

I use python:

 

def fetch_company_id_by_property(property_name, value):
    logger.info("Fetching company by %s: %s", property_name, value)
    field_name = getattr(Company, property_name).field_name
    formula = match({field_name: value})
    company = Company.first(formula=formula)
    if company:
        logger.info("Company: %s %s", company.website_url, company.id)
        return company.id