0

I want to get largest location id of label.

But, It is very slow on follow query.

agens=# match (n:v) return max(graphid_locid(id(n)));
 max 
-----
 6
(1 row)

How to get max location id of label more faster on AgensGraph?

mekhi
  • 13
  • 3

1 Answers1

0

Fetch related sequence value from pg_sequences table.

agens=# select start_value from pg_sequences where schemaname = 'graph' and sequencename = 'v_id_seq';
 start_value 
-------------
           6
(1 row)
korey
  • 23
  • 2