record = ExchangeCoinTransaction.objects.filter(eth_tx_hash=eth_tx_hash)
if not record:
    return False, "the eth transaction is't exchange coin transaction"
json_rec = serializers.serialize("json", record)
record = json.loads(json_rec)

#This simple query database, and serialize the results of the operation 
takes 3 to 4s, similar operations may take more time

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to