Skip to content

Instantly share code, notes, and snippets.

View codingkarthik's full-sized avatar
😃

Karthikeyan Chinnakonda codingkarthik

😃
View GitHub Profile
@codingkarthik
codingkarthik / cloud_team_action_use_cases.md
Last active January 10, 2023 10:07
Cloud team action use cases

Real world Actions use cases

1. Feature flag - check db latency

Input: project_id Output: db_latency_job_id

  1. Make a GraphQL call to the DB to get more details about the project associated with the given project_id. More details include
@codingkarthik
codingkarthik / events_autocleanup_research.md
Last active June 6, 2022 11:49
Events auto cleanup research spec

Challenge

Currently, there is no cleanup process with Event Triggers and this is prone to cause heavy load on the DB as well as impact performance of event triggers. Some of the customers have their own setup to cleanup the events, but not in an optimal way.

Proposal

Give an ability to "VACCUM" old events from the event_log table to contain size bloat as well as sustain performance of Event Triggers. Hasura should be able to do this cleanup automatically,

@codingkarthik
codingkarthik / roles_inheritance_base_role.md
Last active August 5, 2021 15:15
Roles inheritance base role

Base role with limit in inherited roles

Suppose, we have an inherited role, inherited_role which inherits from two roles role1 and role2 which are defined as the following manner:

{
  "select_permissions": [
       {
         "role": "role1",
 "permission": {