GraphQL::Client.load_schema(SCHEMA_LOCATION) # Don't store schema if there were errors, else one bad token will be persisted and poison rest of the attemptsįile.delete(SCHEMA_LOCATION) if schema.present? + = GraphQL::Client.load_schema(SCHEMA_LOCATION)ĭef initialize(opts = -40,7 +48,7 def load_schema SCHEMA_LOCATION = '/tmp/github_schema.json' ġ file changed, 9 insertions(+), 1 deletion(-)ĭiff -git a/lib/github_graphql.rb b/lib/github_graphql.rb There was a GithubGraphql client which load schema on every initialization and was holding onto memory of about 18 MB per invocation, moved it to a Singleton and now it is initialized once per every Sidekiq process. Gem 'tzinfo-data', platforms: Īpart from ruby upgrade, What could be the possible reason behind this behaviour and did someone else observe something similar ? # Windows does not include zoneinfo files, so bundle the tzinfo-data gem # Easy installation and use of web drivers to run system tests with browsers # Adds support for Capybara system testing and selenium driver # Access an interactive console on exception pages or by calling 'console' anywhere in the code. # Call 'byebug' anywhere in the code to stop execution and get a debugger console # Reduces boot times through caching required in config/boot.rb # Use Redis adapter to run Action Cable in production # Turbolinks makes navigating your web application faster. # Use postgresql as the database for Active Record # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |