{"id":24283572,"url":"https://github.com/vikasutf8/prisma_learning-_blogging_app","last_synced_at":"2026-04-20T02:03:12.668Z","repository":{"id":271410467,"uuid":"913314082","full_name":"vikasutf8/Prisma_learning-_blogging_app","owner":"vikasutf8","description":"Enhancing my Backend Development skill on focusing Prisma ORM \u0026 their relational model with intergrated with Postgresql  ","archived":false,"fork":false,"pushed_at":"2025-01-07T15:07:48.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T15:51:49.857Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/vikasutf8.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-07T12:53:29.000Z","updated_at":"2025-01-07T15:10:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"bd6c363c-c2cb-47a9-9047-76d597d07ca1","html_url":"https://github.com/vikasutf8/Prisma_learning-_blogging_app","commit_stats":null,"previous_names":["vikasutf8/prisma_learning-_blogging_app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vikasutf8/Prisma_learning-_blogging_app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikasutf8%2FPrisma_learning-_blogging_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikasutf8%2FPrisma_learning-_blogging_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikasutf8%2FPrisma_learning-_blogging_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikasutf8%2FPrisma_learning-_blogging_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vikasutf8","download_url":"https://codeload.github.com/vikasutf8/Prisma_learning-_blogging_app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikasutf8%2FPrisma_learning-_blogging_app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32029858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-01-16T04:16:05.677Z","updated_at":"2026-04-20T02:03:12.617Z","avatar_url":"https://github.com/vikasutf8.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blogging App enhancing Prisma ORM and Postgresql understanding \n**What is ORM?**\n\n-- as latest udpates, orm take important role of **bridging between oop and relational db**. it simplify db operations/interaction by converting data between incompetable system, allow developer to work with object instead of raw sql queries.\nIn hindi :\nORM --db set connect karne ki  language ha sql by defualt is not easy... so manage karna ,more productive banana like as bridge\n\n--prisma ORM =\u003e how to write model and handling it,interact it \n**Prisma is a popular ORM tool **that provides a type-safe, declarative API for interacting with databases, simplifying development and improving code maintainability.\n-  npm i -D prisma\n-  npx prisma init. -- its initialize \n    - we got folder -prisme/prismaSchema\n    - .env --db-url\n- how to define relations -- as one-to-one || one to many || many to many\n- npm i @prisma/client-- what i do  \n- geneate prisma. as alway anthing done with schema. \n- it creaate couple of cmd that cp in index js --this is connection of prisma to schema ...just take it outsise and export prisma to all controllers.\n\n### project on Prisma with Postgress:\n- creates models ...user,post,commnet with relationship them\n- after show in db postgress table `﻿npx prisma migrate dev --name \"naming of udates as developer easyness\"` \nusing prisma for fetching data as many method. prisma.user.findUnique,findMany,update,delete... etc in \n\n\n**Prisma vs mongooose** \n\n\n### Feature of ORM\n**Lazy Loading**\n--Lazy Loading is an ORM technique that delays the loading of associated data until it is actually needed, improving performance by only retrieving the data that is required at a given time. \\\\\n**Eager Loading**\n--Eager Loading is an ORM feature that loads all the related data for an object at the same time, in contrast to Lazy Loading which retrieves data only when it is needed.\n\n**first Level Caching vs Second Level Caching ORM**\n- The first-level cache in an ORM system is a cache that **stores data within A application's memory**, allowing for faster access to frequently used data objects.\n- A second-level cache in an ORM system provides a higher-level cache that **stores data across multiple application sessions**, unlike the first-level cache which is specific to a single session.\n\n### Data Mapping \n**Oject Relation mapping**\n**Data Schema Abstraction** platform Indepandent Model and Schema migration tools\n\n\n\u003cimg width=\"276\" alt=\"Screenshot 2025-01-07 at 8 37 09 PM\" src=\"https://github.com/user-attachments/assets/1126bb1e-1e75-456e-a467-145fa8adaad6\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikasutf8%2Fprisma_learning-_blogging_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvikasutf8%2Fprisma_learning-_blogging_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikasutf8%2Fprisma_learning-_blogging_app/lists"}