{"id":16179798,"url":"https://github.com/bep/sandbox","last_synced_at":"2025-04-07T11:45:40.485Z","repository":{"id":148330049,"uuid":"2254137","full_name":"bep/sandbox","owner":"bep","description":"Sandbox for testing out different things.","archived":false,"fork":false,"pushed_at":"2011-08-25T13:21:32.000Z","size":276,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T14:41:05.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-08-23T09:15:49.000Z","updated_at":"2014-01-16T03:01:25.000Z","dependencies_parsed_at":"2023-03-28T00:34:55.048Z","dependency_job_id":null,"html_url":"https://github.com/bep/sandbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Fsandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Fsandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Fsandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Fsandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bep","download_url":"https://codeload.github.com/bep/sandbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648924,"owners_count":20972942,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T05:44:02.121Z","updated_at":"2025-04-07T11:45:40.454Z","avatar_url":"https://github.com/bep.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"Bep's sandbox\n=============\nThis is a sandbox. \n\nThe stuff hidden here should work, it should contain some interesting stuff - but it is a sandbox, and as so should be considered experimental.\n\n/grails\n-------\n\n### /collection-or-not\n\nThis is a small Grails project to test out GORM modelling (Hibernate) one-to-many-realationships (also applies to many-to-many) with and without use of Collection on the 1 side (defaults to java.util.Set in Grails).\n\nThe code is inspired by this blog post: https://mrpaulwoods.wordpress.com/2011/02/07/implementing-burt-beckwiths-gorm-performance-no-collections/\n\nOn my i7 Ubuntu desktop with 6 gigs (heap size set to default, though) of ram and the citizen number set to 10000:\n\n\t00438  001%  Creating Japan With Collection\n\t16928  037%  Adding the first 10000 citizens to Japan With Collection\n\t11202  025%  Adding one more citizen to Japan With Collection\n\t00050  000%  Creating Japan Without Collection\n\t15901  035%  Adding the first 10000 citizens to Japan Without Collection\n\t00061  000%  Adding one more citizen to Japan Without Collection\n\t00844  002%  Deleting Japan With Collection\n\t00164  000%  Deleting Japan Without Collection\n\nThe interesting line is the \"Adding one more ...\". I also question the cascade-deletion algorithm used for the hasMany-country. Will look into that one.\n\nTo run the tests:\n\n*grails test-app integration: -echoOut*\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbep%2Fsandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbep%2Fsandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbep%2Fsandbox/lists"}