Tag

Model

0 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Oct 21, 2024 · Backend Development

Separating Read and Write Models in PHP: Why Using Write Models for Retrieval Is Problematic

The article explains why employing write‑oriented models for data retrieval in PHP leads to security leaks, unnecessary validation, and performance issues, and proposes dedicated read models, static constructors, and specialized repositories to cleanly separate read and write concerns.

BackendModelPHP
0 likes · 11 min read
Separating Read and Write Models in PHP: Why Using Write Models for Retrieval Is Problematic
Alimama Tech
Alimama Tech
May 29, 2024 · Artificial Intelligence

Mixture of Multi‑Modal Experts for Advertising Recall

The Mixed‑Modal Expert Model combines ID features with image and text embeddings through optimized representations and conditional output fusion, dramatically improving advertising recall—especially for long‑tail items—and delivering measurable gains in click‑recall, revenue, CTR, and page views in large‑scale online tests.

ModelMultimodaladvertising
0 likes · 15 min read
Mixture of Multi‑Modal Experts for Advertising Recall
php中文网 Courses
php中文网 Courses
Jan 6, 2022 · Backend Development

Implementing Redis Cache in PHP Using the __call Magic Method

This article explains how to integrate Redis caching into PHP applications by leveraging the __call magic method to create cache, clear, and flush operations for model methods, enabling shared model layers, resource‑efficient caching, flexible data source selection, and clean, reusable code.

ModelRedis__call
0 likes · 7 min read
Implementing Redis Cache in PHP Using the __call Magic Method
Java Architect Essentials
Java Architect Essentials
Jan 2, 2022 · Fundamentals

Understanding Good Code Structure: Models, Utils, Services, DAOs, and Controllers

The article explains why a clean code structure is essential, defines the characteristics of a good architecture, describes the roles of Model, Util, Service, DAO, and Controller components, and discusses how these concepts apply to Web, Android, and iOS development for junior engineers.

BackendFrontendModel
0 likes · 8 min read
Understanding Good Code Structure: Models, Utils, Services, DAOs, and Controllers
php中文网 Courses
php中文网 Courses
Jan 25, 2021 · Backend Development

Deep Dive into ThinkPHP Model Implementation and Save Method Execution

This article provides a comprehensive, step‑by‑step analysis of ThinkPHP's Model class, illustrating how the framework organizes model files, utilizes traits and ArrayAccess, and executes the save method—including data validation, insert/update logic, and the underlying execute routine that interacts with the database via PDO.

BackendDatabaseModel
0 likes · 9 min read
Deep Dive into ThinkPHP Model Implementation and Save Method Execution
php中文网 Courses
php中文网 Courses
Jan 22, 2021 · Backend Development

Laravel Eloquent Model Tips: Selecting Attributes, Cloning, Comparing, Refreshing, Updating Relations, Soft Deletes, and Change Detection

This article presents a collection of practical Laravel Eloquent model techniques, including selecting specific attributes with find, cloning models via replicate, comparing models with is, refreshing and reloading records, updating related models with push, customizing soft‑delete columns, and detecting attribute changes using getChanges, getDirty, and getOriginal.

BackendDatabaseEloquent
0 likes · 5 min read
Laravel Eloquent Model Tips: Selecting Attributes, Cloning, Comparing, Refreshing, Updating Relations, Soft Deletes, and Change Detection
php中文网 Courses
php中文网 Courses
Dec 9, 2020 · Backend Development

How to Specify a Custom Table Name for a Laravel Model

This guide explains why Laravel automatically pluralizes model names to table names, the problems it can cause, and how to override the default by adding a protected $table property in the model class to map the model to a custom table name.

Custom TableLaravelModel
0 likes · 2 min read
How to Specify a Custom Table Name for a Laravel Model
DataFunTalk
DataFunTalk
Sep 26, 2020 · Artificial Intelligence

What Makes a Good Model? Understanding Model Concepts, Types, and Evaluation in Data Science

This article explores the definition of a model, distinguishes business, data, and function models, discusses criteria for a good model—including performance, fidelity to real‑world relationships, and interpretability—and examines why a universal model does not exist, all within the context of data science and AI.

AIInterpretabilityModel
0 likes · 18 min read
What Makes a Good Model? Understanding Model Concepts, Types, and Evaluation in Data Science
Laravel Tech Community
Laravel Tech Community
Apr 16, 2020 · Backend Development

Laravel Eloquent ORM: Defining Models, Queries, and Data Operations

This tutorial explains how to configure Laravel's Eloquent ORM, create and customize model classes, manage table names, primary keys, timestamps, perform queries, insert, update, delete records, handle soft deletes, apply global and local scopes, and work with model events and observers, all with practical PHP code examples.

DatabaseEloquentLaravel
0 likes · 22 min read
Laravel Eloquent ORM: Defining Models, Queries, and Data Operations
Beike Product & Technology
Beike Product & Technology
Aug 15, 2018 · Backend Development

Applying Yii2 Model Validation with Scenarios and Rules

This article explains how Yii2 uses validators and scenario configurations to perform comprehensive data validation in PHP models, illustrating the approach with a complete code example, detailed rule definitions, and guidance on using on/except, message, and scenarios methods.

BackendModelPHP
0 likes · 7 min read
Applying Yii2 Model Validation with Scenarios and Rules
Test Development Learning Exchange
Test Development Learning Exchange
Jun 26, 2018 · Backend Development

Comprehensive Django ORM Guide: Model Definition, Custom Table Names, Indexes, Relationships, Query Optimization, and Validation

This article provides an in‑depth tutorial on using Django's ORM, covering model creation, custom table names, single and composite indexes, one‑to‑many and many‑to‑many relationships, forward and reverse lookups, performance tuning with select_related and prefetch_related, and model validation techniques.

BackendDatabaseDjango
0 likes · 21 min read
Comprehensive Django ORM Guide: Model Definition, Custom Table Names, Indexes, Relationships, Query Optimization, and Validation