Skip to content

Commit

Permalink
add note
Browse files Browse the repository at this point in the history
  • Loading branch information
mourginakis committed Nov 7, 2023
1 parent 629fe0e commit 1ec459a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions node_monitor/node_provider_db2.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
class NodeProviderDB():
"""A class to interact with the node_provider database."""

# Postgres has no efficiency gain for using a VARCHAR instead of TEXT:
# We've chosen to use VARCHAR so that any user or admin can't store
# an arbitrarily large amount of data in the database.

create_table_subscribers = """
CREATE TABLE IF NOT EXISTS subscribers (
node_provider_id VARCHAR(255) PRIMARY KEY,
Expand Down

0 comments on commit 1ec459a

Please sign in to comment.