Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REFACTOR: remove unused getMaxPipeCount. #853

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

brido4125
Copy link
Collaborator

πŸ”— Related Issue

https://github.com/jam2in/arcus-works/issues/654#event-15614575064

⌨️ What I did

getMaxPipedItemCount λ©”μ„œλ“œ 제거

@brido4125 brido4125 requested a review from jhpark816 December 12, 2024 01:02
Copy link
Collaborator

@jhpark816 jhpark816 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰 μ™„λ£Œ

@@ -145,7 +146,7 @@ void testMaxPipedExist() {
List<Object> findValues = new ArrayList<>();

// insert items
for (int i = 0; i < mc.getMaxPipedItemCount(); i++) {
for (int i = 0; i < CollectionPipedInsert.MAX_PIPED_ITEM_COUNT; i++) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SetPipedExist.MAX_PIPED_ITEM_COUNT둜 λ³€κ²½ν•˜λŠ” 것이 λ§žμ„ 것 κ°™μŠ΅λ‹ˆλ‹€.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

λ³€κ²½ν•˜μ§€ μ•Šμ€ 이유λ₯Ό μ•Œλ €μ£Όμ„Έμš”.

@@ -41,7 +42,7 @@ class MopBulkAPITest extends BaseIntegrationTest {
private final Map<String, Object> updateMap = new HashMap<>();

private int getValueCount() {
return mc.getMaxPipedItemCount();
return CollectionPipedInsert.MAX_PIPED_ITEM_COUNT;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CollectionPipedInsert.MAX_PIPED_ITEM_COUNT 외에도
CollectionPipedUpdate.MAX_PIPED_ITEM_COUNT 값이 μžˆμŠ΅λ‹ˆλ‹€.

ν…ŒμŠ€νŠΈ λ‘œμ§μ—μ„œ 두 κ°’ 쀑 μ–΄λ–€ 값을 μ‚¬μš©ν•΄μ•Ό ν•˜λŠ” 지도 κ²€ν† ν•΄ λ³΄μ‹œμ£ .

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • CollectionPipedInsert.MAX_PIPED_ITEM_COUNT
  • CollectionPipedUpdate.MAX_PIPED_ITEM_COUNT
  • SetPipedExist.MAX_PIPED_ITEM_COUNT

μ…‹ λ‹€ λ™μΌν•˜κ²Œ 500으둜 μ„€μ •λ˜μ–΄μžˆμŠ΅λ‹ˆλ‹€.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

μ…‹ λ‹€ λ™μΌν•˜κ²Œ 500으둜 μ„€μ •λ˜μ–΄μžˆμŠ΅λ‹ˆλ‹€.

μœ„μ˜ μ΄μœ κ°€
CollectionPipedInsert.MAX_PIPED_ITEM_COUNT 값을 λͺ¨λ“  κ²½μš°μ—μ„œ μ‚¬μš©ν•˜λŠ” μ΄μœ κ°€ λ˜μ§€ λͺ»ν•©λ‹ˆλ‹€.

μ–Έμ œκ°€ CollectionPipedUpdate.MAX_PIPED_ITEM_COUNT 값이 700으둜 변경될 μˆ˜λ„ μžˆμŠ΅λ‹ˆλ‹€.
이 값이 λ³€κ²½λ˜λ”λΌλ„, ν…ŒμŠ€νŠΈ μ½”λ“œλŠ” μ •μƒμ μœΌλ‘œ λ™μž‘ν•΄μ•Ό ν•©λ‹ˆλ‹€.
λ”°λΌμ„œ, μ½”λ“œ λ‘œμ§μ„ ν™•μΈν•˜κ³  κ·Έ λ‘œμ§μ— λ§žλŠ” 값을 μ‚¬μš©ν•΄μ•Ό ν•©λ‹ˆλ‹€.

μ½”λ“œλ₯Ό λͺ¨λ‘ 확인해 λ³΄μ•˜κ³ ,
CollectionPipedInsert.MAX_PIPED_ITEM_COUNT 값을 μ‚¬μš©ν•˜λŠ” 것이 λ§žλ‹€λΌκ³  ν•˜λ©΄,
μΆ©λΆ„ν•œ μ„€λͺ…이 될 수 μžˆμ„ κ²ƒμž…λ‹ˆλ‹€.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 값이 λ³€κ²½λ˜λ”λΌλ„, ν…ŒμŠ€νŠΈ μ½”λ“œλŠ” μ •μƒμ μœΌλ‘œ λ™μž‘ν•΄μ•Ό ν•©λ‹ˆλ‹€. λ”°λΌμ„œ, μ½”λ“œ λ‘œμ§μ„ ν™•μΈν•˜κ³  κ·Έ λ‘œμ§μ— λ§žλŠ” 값을 μ‚¬μš©ν•΄μ•Ό ν•©λ‹ˆλ‹€.

pipe max count 값이 λ³€κ²½ μ‹œ, κ³ λ €ν•  수 μžˆλŠ” 두 가지 κ²½μš°μž…λ‹ˆλ‹€.

  • μΊμ‹œμ„œλ²„λ„ κ°’κ³Ό ν•¨κ»˜ λ³€κ²½ -> ν…ŒμŠ€νŠΈ μ½”λ“œ 성곡 (λ§μ”€ν•˜μ‹  정상적인 λ™μž‘μ„ μˆ˜ν–‰)
  • κ°’λ§Œ λ³€κ²½ -> ν…ŒμŠ€νŠΈ μ½”λ“œ μ‹€νŒ¨λ‘œ μΈν•œ λ³€κ²½ 감지 κ°€λŠ₯

ν˜„μž¬ κ΅¬ν˜„ μƒμ˜ Insert / Update MAX_PIPED_ITEM_COUNT의 μ‹œλ©˜ν‹±μ„ μ•ˆλ‹€λ©΄
두 가지 κ°’μ˜ 변경은 ν•¨κ»˜ μ΄λ£¨μ–΄μ§ˆ 것이라고 μ˜ˆμƒν•©λ‹ˆλ‹€.

μ–Έμ  κ°€ CollectionPipedUpdate.MAX_PIPED_ITEM_COUNT 값이
700으둜 λ³€κ²½λœλ‹€λ©΄
CollectionPipedInsert.MAX_PIPED_ITEM_COUNT도 ν•¨κ»˜
700으둜 변경될 κ°€λŠ₯성이 더 높지 μ•Šλ‚˜μš”?

결둠적으둜 λ³€μˆ˜μ˜ μ˜λ―Έμ™€ λ‚΄λΆ€ λ‘œμ§μ„ μ‚΄νŽ΄λ³΄λ‹ˆ Insert의 MAX_PIPED_ITEM_COUNTλ₯Ό μ‚¬μš©ν•΄λ„ 상관 μ—†λ‹€κ³  μƒκ°ν•©λ‹ˆλ‹€.

Copy link
Collaborator

@jhpark816 jhpark816 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰 μ™„λ£Œ

@@ -145,7 +146,7 @@ void testMaxPipedExist() {
List<Object> findValues = new ArrayList<>();

// insert items
for (int i = 0; i < mc.getMaxPipedItemCount(); i++) {
for (int i = 0; i < CollectionPipedInsert.MAX_PIPED_ITEM_COUNT; i++) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

λ³€κ²½ν•˜μ§€ μ•Šμ€ 이유λ₯Ό μ•Œλ €μ£Όμ„Έμš”.

@@ -41,7 +42,7 @@ class MopBulkAPITest extends BaseIntegrationTest {
private final Map<String, Object> updateMap = new HashMap<>();

private int getValueCount() {
return mc.getMaxPipedItemCount();
return CollectionPipedInsert.MAX_PIPED_ITEM_COUNT;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

μ…‹ λ‹€ λ™μΌν•˜κ²Œ 500으둜 μ„€μ •λ˜μ–΄μžˆμŠ΅λ‹ˆλ‹€.

μœ„μ˜ μ΄μœ κ°€
CollectionPipedInsert.MAX_PIPED_ITEM_COUNT 값을 λͺ¨λ“  κ²½μš°μ—μ„œ μ‚¬μš©ν•˜λŠ” μ΄μœ κ°€ λ˜μ§€ λͺ»ν•©λ‹ˆλ‹€.

μ–Έμ œκ°€ CollectionPipedUpdate.MAX_PIPED_ITEM_COUNT 값이 700으둜 변경될 μˆ˜λ„ μžˆμŠ΅λ‹ˆλ‹€.
이 값이 λ³€κ²½λ˜λ”λΌλ„, ν…ŒμŠ€νŠΈ μ½”λ“œλŠ” μ •μƒμ μœΌλ‘œ λ™μž‘ν•΄μ•Ό ν•©λ‹ˆλ‹€.
λ”°λΌμ„œ, μ½”λ“œ λ‘œμ§μ„ ν™•μΈν•˜κ³  κ·Έ λ‘œμ§μ— λ§žλŠ” 값을 μ‚¬μš©ν•΄μ•Ό ν•©λ‹ˆλ‹€.

μ½”λ“œλ₯Ό λͺ¨λ‘ 확인해 λ³΄μ•˜κ³ ,
CollectionPipedInsert.MAX_PIPED_ITEM_COUNT 값을 μ‚¬μš©ν•˜λŠ” 것이 λ§žλ‹€λΌκ³  ν•˜λ©΄,
μΆ©λΆ„ν•œ μ„€λͺ…이 될 수 μžˆμ„ κ²ƒμž…λ‹ˆλ‹€.

@jhpark816 jhpark816 merged commit 9d9ffde into naver:develop Dec 12, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants