Title: SQL Direct access
Source: https://nodely.io/docs/solutions/sql-direct/

# SQL Direct access

<a id="quick-start"></a>

## Quick Start

```bash
psql -U USERNAME -h sql.xxx.algonode.net -p YYYY ledgerdb
```

Note

Postgres is running on non-standard port YYYY **without** SSL.  
Server is running PG version 14. Compatible with v10+ clients and SDKs.

<a id="vs-vanilla-indexer"></a>

## Vs vanilla Indexer

Algorand provides open source Indexer that anyone can run.  
Maintaining it might be a (costly) challenge - see current SSD requirement [here](https://g.nodely.io/d/howbig)

If you are interested in running the indexer yourself consider starting with a self contained [light version](https://nodely.io/docs/public/light-indexer).

<a id="schema-diffs"></a>

### Schema diffs

-   Table public.txn is a partitioned table
-   Table public.txn has extra indexes
-   Table public.asset has extra indexes

Schemas:

-   [vanilla schema](https://nodely.io/docs/solutions/sql-direct/schema-idx-vanilla)
-   [Nodely’s extended schema](https://nodely.io/docs/solutions/sql-direct/schema-ext)

<a id="extras"></a>

### Extras

-   Realtime NFT Metadata parser with support for
    -   [ARC3](https://arc.algorand.foundation/ARCs/arc-0003)
    -   [ARC19](https://arc.algorand.foundation/ARCs/arc-0019)
    -   [ARC69](https://arc.algorand.foundation/ARCs/arc-0069)
-   [Nodely’s Algorand extension](https://github.com/algonode/pg_algorand/)
-   [Citus TOPn extension](https://github.com/citusdata/postgresql-topn/)
-   [Citus HLL extension](https://github.com/citusdata/postgresql-hll/)

<a id="limitations"></a>

## Limitations

-   Not compatible with PGAdmin
-   SQL statements are limited in execution time
-   Not suitable as a SQL backend for Algorand-Indexer
-   No [ARC72](https://arc.algorand.foundation/ARCs/arc-0072) support

Note

Some values are stored in original binary format. See extra functions below.

<a id="sql-etl"></a>

## SQL ETL

Each dedicated database instance is powered with a highly customized ETL process.

-   Blocks are loaded from multiple sources at the same time.
-   Hardware is tuned to favor write workloads.

This results in:

-   More reliable block delivery (no SPoF)
-   Shorter avg time to new block by 150ms
-   Faster indexing

Parallel ETL process enriches the dataset with real-time NFT metadata sourced from recursive IPFS fetches.

![Diagram](https://nodely.io/d2/docs/docs/solutions/sql-direct/index-0.svg)
