腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
5
回答
Jira:"
Related
of“vs”
Related
to“
、
在Jira中,将项目链接在一起既简单又有用。类似地,您可以将问题201标记为200的副本(反之,200是201的副本),并且还有一些其他链接类型。您的开发团队是如何定义这两个项目的?这并不重要,除非显示不同,使链接类型略有不同,只是当一个问题是其他几个问题的“相
浏览 2
提问于2009-09-18
得票数 15
回答已采纳
1
回答
select_
related
后prefetch_
related
、
、
models.ForeignKey(Baz)[[x.baz.a for x in y.page_set.all()]Book.objects.all().prefetch_
related
('page_set',
浏览 1
提问于2014-11-25
得票数 6
回答已采纳
1
回答
Django ORM object.
related
.id与使用select_
related
之后的object.
related
_id (‘
related
’)
、
、
、
product= models.ForeignKey(Product) 在使用select_
related
进行类似于Order.objects.filter(...).select_
related
('product
浏览 21
提问于2021-04-01
得票数 0
回答已采纳
1
回答
Django链接prefetch_
related
和select_
related
、
、
class Bar(models.Model): foo: models.ForeignKey(Foo,
related
_name='bars', ...)foos = Foo.objects.prefetch_
related
('bars__prop').all() 如果只有一个select_
related
与bar相关联,上面的查询是进行3次数据库调用还是只进行2次(bar中的prop的prop 如果它需要3次调用,那么有没有办法通过使用bar -> prop的selected_
浏览 17
提问于2019-02-07
得票数 5
2
回答
滤波prefetch_
related
和select_
related
结果
、
、
、
、
class BookTranslation(models.Model): book_translation=models.ForeignKey(BookTranslation,
related
_name='chaptersBookDetail(DetailView): def get_objec
浏览 3
提问于2014-04-26
得票数 0
回答已采纳
1
回答
Django prefetch_
related
和select_
related
、
、
我想知道prefetch_
related
()和select_
related
()的行为。如果我执行类似于Model.objects.filter(.).prefetch_
related
()的操作,我注意到发生的数据库查询要少得多。因此,我最初的猜测是,如果没有在prefetch_
related
()中指定所需的查找,它将自动遍历所有模型字段并完成所需的工作。然而,我在网上找不到任何关于它的参考资料,这对我来说似乎很奇怪。
浏览 6
提问于2017-11-08
得票数 1
回答已采纳
1
回答
使用select_
related
获取
related
_name对象
、
、
text = models.TextField() message = models.ForeignKey(Messages,
related
_name我被指明了使用select_
related
的方向,但我什么也做不了。谢谢你!!
浏览 2
提问于2015-10-19
得票数 6
回答已采纳
2
回答
DRF select_
related
和prefetch_
related
不工作
、
、
我试图减少使用prefetch_
related
和select_
related
.的查询次数然而,它似乎不起作用。serializer_class = MatchSerializer queryset =Match.objects.all().prefetch_
related
浏览 7
提问于2020-06-10
得票数 0
1
回答
复prefetch_
related
、
有一个请求,它返回一个列表的几个名单与他们的电影。我希望使用预取到列表来优化db调用。 class List(models.Model): list = models.ForeignKey(List) title = models.CharField()
浏览 1
提问于2019-07-20
得票数 0
回答已采纳
1
回答
Django select_
related
()
、
、
、
True) Category, models.PROTECT,
related
_name我创造了这个:并得到: <QuerySet [<Outlay: 2022-
浏览 5
提问于2022-10-04
得票数 1
1
回答
如果值不为null,则MySQL -循环查询
、
、
、
" ); $
related
_thing_name[] = $
related
_thing->value; $
related
_thing_id = $
related
_
浏览 1
提问于2016-08-04
得票数 0
回答已采纳
1
回答
选择相关模型:左连接、prefetch_
related
还是select_
related
?
、
OR a.user_id IS NULLp = Prefetch('alert_set', queryset=Alert.objects.filter(user=self.request.user), to_attr='user_alert') houses = House.objects.order_by('name').prefetch_
related
select_
related
似乎不起作用。哦,我当然知道我
浏览 2
提问于2017-04-11
得票数 1
回答已采纳
1
回答
django select_
related
,prefetch_
related
.如何阅读django_toolbar?
、
我如何决定应该使用prefetch_
related
()还是select_
related
()
浏览 0
提问于2016-05-01
得票数 0
2
回答
如何将数据从一个字段复制到Server中不同行中的另一个字段
这个解决方案是在这里提供的,但我认为对SQL Server无效: SET t2.
related
1 = t1.
related
1SET t2.
related
3= t1.
related
3 SET t2.
relat
浏览 4
提问于2014-11-29
得票数 0
回答已采纳
2
回答
使用
related
_entries的ExpressionEngine条件逻辑
= "" OR
related
_pages != "" OR
related
_posts != "" OR
related
_news != ""} {
related
_entries id="
related
_pages"}= ""}
浏览 2
提问于2012-06-24
得票数 0
回答已采纳
2
回答
如何在Wordpress中将不同的变量传递到同一个模板中
、
、
sidebar.php include(locate_template('template_parts/content-
related
-list.php')); // the another var should go to the same template$
re
浏览 4
提问于2018-06-21
得票数 0
1
回答
django模型select_
related
或prefetch_
related
子模型
、
、
、
、
TYPE_OPTIONS, default=TYPE_OPTIONS[0]) master = models.ForeignKey(ReceipeMaster, on_delete=models.CASCADE,
related
_namereceipes/show.html' context_object_name = &
浏览 10
提问于2021-04-08
得票数 1
回答已采纳
1
回答
Select_
related
(和prefetch_
related
)没有按预期工作?
、
、
): many_
related
=models.ManyToManyField(One,
related
_name='many_
related
') first = models.IntegerFieldelements <e
浏览 1
提问于2015-09-22
得票数 0
回答已采纳
2
回答
select_
related
问题
、
、
我试过了,它只对获得品牌有效: p = get_object_or_404(Phone.objects.select_
related
('brand', 'feature__featuredetail')
浏览 2
提问于2013-03-03
得票数 1
回答已采纳
1
回答
加入GenericRelation并将结果限制为django中的最新结果
、
好了,棘手的django查询问题...我有一个模型来存储电子邮件,它(通过通用关系)连接到其他几个模型(即参与)。我这样做,是因为在我的应用程序中,我发送了许多与不同模型相关联的电子邮件,并希望将它们放在一个地方(电子邮件模型)。 name = models.CharField(max_length=200) content_type = models.ForeignKey(Content
浏览 4
提问于2019-02-21
得票数 1
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Windows 10搜索功能获得改进:新增“Related”标签
函数周期表丨筛选丨值&表丨RELATED系列
马斯克旗下推特将针对美国市场事业关联(Cause-Related)类广告松绑。
这两个参数,让你的 Django 查询速度提高10倍
ADAE中对合并的处理
热门
标签
更多标签
云服务器
ICP备案
对象存储
腾讯会议
云直播
活动推荐
运营活动
广告
关闭
领券