When a node receives a new transaction, that node will check if the one broadcasting the transaction has enough coins to initiate it. Bitcoin follows a UTXO model, therefore the node has to check in the past if the sender has enough coins.
Is this check linear in time? Where can I read to know more about it?